Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for isTraceResourceUsage (0.57 seconds)

  1. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.isAllowCompound(command);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#isTraceResourceUsage()
         */
        @Override
        public boolean isTraceResourceUsage() {
            return this.delegate.isTraceResourceUsage();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#isStrictResourceLifecycle()
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/main/java/jcifs/Configuration.java

        boolean isStrictResourceLifecycle();
    
        /**
         * This is solely intended for debugging
         *
         * @return whether to track the locations from which resources were created
         */
        boolean isTraceResourceUsage();
    
        /**
         * Checks if compound requests are allowed for the specified command
         *
         * @param command the SMB command to check
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  6. 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)
  7. 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)
  8. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            this.access = access;
            this.attrs = attrs;
            this.options = options;
            this.tree = tree.acquire();
            this.tree_num = tree.getTreeId();
    
            if (cfg.isTraceResourceUsage()) {
                this.creationBacktrace = Thread.currentThread().getStackTrace();
            } else {
                this.creationBacktrace = null;
            }
        }
    
        /**
         * @param cfg
         * @param fid
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.4K bytes
    - Click Count (1)
  9. 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)
  10. 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)
Back to Top