Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getNotifyBufferSize (2.25 sec)

  1. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            testFileId = new byte[16];
            Arrays.fill(testFileId, (byte) 0xAB);
    
            // Use lenient stubbing for default configuration values
            lenient().when(mockConfig.getNotifyBufferSize()).thenReturn(8192);
            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
    
            request = new Smb2ChangeNotifyRequest(mockConfig, testFileId);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            int notifyBufferSize = 8192;
            when(mockConfig.getNotifyBufferSize()).thenReturn(notifyBufferSize);
    
            notifyChange = new NtTransNotifyChange(mockConfig, 0x1234, FILE_NOTIFY_CHANGE_FILE_NAME, false);
    
            // Verify that the configuration was queried for notify buffer size
            verify(mockConfig, atLeastOnce()).getNotifyBufferSize();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ConfigurationTest.java

                mockConfig.getListSize();
                mockConfig.getAttributeCacheTimeout();
                mockConfig.isIgnoreCopyToException();
                mockConfig.getBatchLimit("cmd");
                mockConfig.getNotifyBufferSize();
                mockConfig.getMaxRequestRetries();
                mockConfig.isStrictResourceLifecycle();
                mockConfig.isTraceResourceUsage();
                mockConfig.isAllowCompound("cmd");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbWatchHandle.java

         * this method should provide all changes (size of that buffer can be adjusted through
         * {@link jcifs.Configuration#getNotifyBufferSize()}).
         * If the server cannot fulfill the request because the changes did not fit the buffer
         * it will return an empty list of changes.
         *
         * @return changes since the last invocation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.getSendBufferSize();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getNotifyBufferSize()
         */
        @Override
        public int getNotifyBufferSize() {
            return this.delegate.getNotifyBufferSize();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getSoTimeout()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            when(mockDelegate.getTransactionBufferSize()).thenReturn(65024);
            when(mockDelegate.getBufferCacheSize()).thenReturn(16);
            when(mockDelegate.getNotifyBufferSize()).thenReturn(1024);
    
            // When
            int sendBufferSize = delegatingConfig.getSendBufferSize();
            int receiveBufferSize = delegatingConfig.getReceiveBufferSize();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java

         */
        public Smb2ChangeNotifyRequest(final Configuration config, final byte[] fileId) {
            super(config, SMB2_CHANGE_NOTIFY);
            this.outputBufferLength = config.getNotifyBufferSize();
            this.fileId = fileId;
        }
    
        /**
         * Set the notification flags
         *
         * @param notifyFlags
         *            the notifyFlags to set
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChange.java

            this.watchTree = watchTree;
            this.setupCount = 0x04;
            this.totalDataCount = 0;
            this.maxDataCount = 0;
            this.maxParameterCount = config.getNotifyBufferSize();
            this.maxSetupCount = (byte) 0x00;
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertEquals(SmbConstants.DEFAULT_RCV_BUF_SIZE, config.getRecieveBufferSize()); // Deprecated method
            assertEquals(SmbConstants.DEFAULT_NOTIFY_BUF_SIZE, config.getNotifyBufferSize());
            assertEquals(SmbConstants.DEFAULT_MAX_MPX_COUNT, config.getMaxMpxCount());
        }
    
        @Test
        @DisplayName("Test SMB configuration getters")
        void testSmbConfigurationGetters() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/Configuration.java

        /**
         *
         * Property {@code jcifs.smb.client.notify_buf_size} (int, default 1024)
         *
         * @return the size of the requested server notify buffer
         */
        int getNotifyBufferSize();
    
        /**
         *
         *
         * Property {@code jcifs.smb.client.maxRequestRetries} (int, default 2)
         *
         * @return retry SMB requests on failure up to n times
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top