- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for getLeaseState (0.06 sec)
-
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
assertNotNull(key); LeaseEntry entry = leaseManager.getLease(key); assertNotNull(entry); assertEquals(requestedState, entry.getLeaseState()); assertEquals(path, entry.getPath()); assertEquals(1, entry.getEpoch()); assertFalse(entry.isBreaking()); } @Test @DisplayName("Should reuse existing lease for same path")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
DirectoryLeaseContext context = new DirectoryLeaseContext(key, leaseState, scope); assertEquals(key, context.getLeaseKey()); assertEquals(leaseState, context.getLeaseState()); assertEquals(scope, context.getCacheScope()); assertEquals(30000L, context.getMaxCacheAge()); assertTrue(context.isNotificationEnabled()); assertEquals(0, context.getNotificationFilter());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
assertEquals(0, defaultContext.getLeaseState()); assertEquals(0, defaultContext.getLeaseFlags()); } @Test @DisplayName("Should initialize with provided values") void testParameterizedConstructor() { assertEquals(testKey, leaseContext.getLeaseKey()); assertEquals(testState, leaseContext.getLeaseState()); assertEquals(0, leaseContext.getLeaseFlags()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java
*/ public int getLeaseState() { LeaseV2CreateContextResponse v2 = getLeaseV2Context(); if (v2 != null) { return v2.getLeaseState(); } LeaseV1CreateContextResponse v1 = getLeaseV1Context(); if (v1 != null) { return v1.getLeaseState(); } return 0; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 15.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java
*/ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Gets the lease state granted by the server * @return the granted lease state */ public int getLeaseState() { return leaseState; } /** * Gets the lease flags from the server response * @return the lease flags */ public int getLeaseFlags() { return leaseFlags;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
if (entry != null) { log.info("Handling lease break for {} from state 0x{} to 0x{}", key, Integer.toHexString(entry.getLeaseState()), Integer.toHexString(newState)); entry.setBreaking(true); int oldState = entry.getLeaseState(); entry.updateState(newState); // Flush any cached data if losing write cache
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java
*/ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Gets the lease state granted by the server for V2 * @return the granted lease state */ public int getLeaseState() { return leaseState; } /** * Gets the lease flags from the V2 server response * @return the lease flags */ public int getLeaseFlags() { return leaseFlags;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
decodedContext.decode(buffer, 0, buffer.length); // Verify roundtrip integrity assertEquals(context.getLeaseState(), decodedContext.getLeaseState()); assertEquals(context.getCacheScope(), decodedContext.getCacheScope()); assertEquals(context.getMaxCacheAge(), decodedContext.getMaxCacheAge());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java
*/ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Gets the lease state being acknowledged * @return the lease state */ public int getLeaseState() { return leaseState; } /** * Gets the lease flags for this acknowledgment * @return the lease flags */ public int getLeaseFlags() { return flags; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakResponse.java
*/ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Gets the granted lease state from the break response * @return the lease state */ public int getLeaseState() { return leaseState; } /** * Gets the lease flags from the break response * @return the lease flags */ public int getLeaseFlags() { return flags; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 3.7K bytes - Viewed (0)