- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for isTraceResourceUsage (0.09 sec)
-
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24.1K bytes - Viewed (0) -
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;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
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() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
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); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
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() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
void setup() { when(ctx.getConfig()).thenReturn(config); // keep retries small for faster and deterministic tests when(config.getMaxRequestRetries()).thenReturn(2); when(config.isTraceResourceUsage()).thenReturn(false); // Mock credentials to avoid NullPointerException when(ctx.getCredentials()).thenReturn(credentials); when(credentials.getUserDomain()).thenReturn("DOMAIN");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 36.5K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0)