Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for isTraceResourceUsage (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/smb/SmbTreeImpl.java

            if (service != null && !service.startsWith("??")) {
                this.service = service;
            }
            this.service0 = this.service;
    
            this.traceResource = this.session.getConfig().isTraceResourceUsage();
            if (this.traceResource) {
                this.acquires = new LinkedList<>();
                this.releases = new LinkedList<>();
            } else {
                this.acquires = null;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbTreeConnection.java

        }
    
        static SmbTreeConnection create(final CIFSContext c) {
            if (c.getConfig().isTraceResourceUsage()) {
                return new SmbTreeConnectionTrace(c);
            }
            return new SmbTreeConnection(c);
        }
    
        static SmbTreeConnection create(final SmbTreeConnection c) {
            if (c.ctx.getConfig().isTraceResourceUsage()) {
                return new SmbTreeConnectionTrace(c);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 30.4K bytes
    - Click Count (1)
  3. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        }
    
        @Test
        @DisplayName("Constructor with null tree throws NPE (byte[] fid variant)")
        void constructor_nullTree_byteArray_throwsNPE() {
            lenient().when(cfg.isTraceResourceUsage()).thenReturn(false);
            assertThrows(NullPointerException.class,
                    () -> new SmbFileHandleImpl(cfg, new byte[] { 1, 2 }, null, "//server/share", 0, 0, 0, 0, 0L));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/config/BaseConfiguration.java

            return this.ignoreCopyToException;
        }
    
        @Override
        public int getMaxRequestRetries() {
            return this.maxRequestRetries;
        }
    
        @Override
        public boolean isTraceResourceUsage() {
            return this.traceResourceUsage;
        }
    
        @Override
        public boolean isStrictResourceLifecycle() {
            return this.strictResourceLifecycle;
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/ConfigurationTest.java

                mockConfig.getBatchLimit("cmd");
                mockConfig.getNotifyBufferSize();
                mockConfig.getMaxRequestRetries();
                mockConfig.isStrictResourceLifecycle();
                mockConfig.isTraceResourceUsage();
                mockConfig.isAllowCompound("cmd");
                mockConfig.getMachineId();
                mockConfig.isDisableSpnegoIntegrity();
                mockConfig.isEnforceSpnegoIntegrity();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbTreeImplTest.java

            when(session.getContext()).thenReturn(context);
            when(session.getTransport()).thenReturn(transport);
            when(session.acquire()).thenReturn(session);
            when(config.isTraceResourceUsage()).thenReturn(false);
            when(context.getConfig()).thenReturn(config);
            when(session.isConnected()).thenReturn(true);
        }
    
        // Test case for the constructor of SmbTreeImpl
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        void setUp() {
            mockDelegate = mock(CIFSContext.class);
            mockConfiguration = mock(Configuration.class);
            when(mockDelegate.getConfig()).thenReturn(mockConfiguration);
            when(mockConfiguration.isTraceResourceUsage()).thenReturn(false); // Default to false or true based on expected behavior
            cifsContextWrapper = new CIFSContextWrapper(mockDelegate);
        }
    
        @Test
        void testConstructor() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertEquals(-1, config.getPid());
            assertFalse(config.isIgnoreCopyToException());
            assertEquals(2, config.getMaxRequestRetries());
            assertFalse(config.isTraceResourceUsage());
            assertFalse(config.isStrictResourceLifecycle());
            assertNull(config.getMachineId());
        }
    
        @Test
        @DisplayName("Test getBatchLimit method")
        void testGetBatchLimit() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.6K bytes
    - Click Count (0)
Back to Top