- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for heartBeat (0.06 sec)
-
src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java
} /** * Gets the heartbeat interval recommended by the server (in milliseconds). * The client can use this to adjust the heartbeat frequency. * * @return the heartbeat interval in milliseconds */ public long getHeartbeatInterval() { return heartbeatInterval; } /** * Sets the heartbeat interval. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegistration.java
return sequenceNumber.incrementAndGet(); } /** * Updates the heartbeat timestamp to current time and resets failure count. */ public void updateHeartbeat() { this.lastHeartbeat = System.currentTimeMillis(); this.heartbeatFailures = 0; } /** * Increments the heartbeat failure count. */ public void incrementHeartbeatFailures() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessHeartbeatResponse.java
} /** * Gets the recommended heartbeat interval. * * @return the recommended heartbeat interval in milliseconds */ public long getRecommendedHeartbeatInterval() { return recommendedHeartbeatInterval; } /** * Sets the recommended heartbeat interval. * * @param recommendedHeartbeatInterval the recommended heartbeat interval in milliseconds */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
if (response != null && response.isSuccess()) { registration.updateHeartbeat(); } else { log.warn("Witness heartbeat failed for: {}", registration.getRegistrationId()); registration.incrementHeartbeatFailures(); } } catch (Exception e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRpcClient.java
} } /** * Sends a witness heartbeat. * * @param request the heartbeat request * @return the heartbeat response * @throws IOException if the RPC call fails */ public WitnessHeartbeatResponse heartbeat(WitnessHeartbeatRequest request) throws IOException { if (!connected) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java
String regId = mockService.registerWitness("\\\\server\\share", "192.168.1.100", 1); // Test successful heartbeat assertTrue(mockService.processHeartbeat(regId, 1)); assertTrue(mockService.processHeartbeat(regId, 2)); // Test heartbeat for non-existent registration assertFalse(mockService.processHeartbeat("non-existent", 1)); // Clean up
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessHeartbeatRequest.java
*/ package jcifs.internal.witness; /** * Represents a witness heartbeat request as defined in MS-SWN specification. * Used to maintain active witness registrations. */ public class WitnessHeartbeatRequest { /** * Creates a new witness heartbeat request. */ public WitnessHeartbeatRequest() { // Default constructor }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/MockWitnessService.java
} catch (IOException e) { return "ncacn_ip_tcp:127.0.0.1[135]"; } } /** * Simulate heartbeat processing * * @param registrationId the registration ID * @param sequenceNumber the sequence number * @return true if heartbeat was successful */ public boolean processHeartbeat(String registrationId, long sequenceNumber) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 8.2K bytes - Viewed (0) -
docs/smb3-features/06-witness-protocol-design.md
WitnessHeartbeatResponse response = rpcClient.heartbeat(request); if (response.isSuccess()) { registration.updateHeartbeat(); } else { log.warn("Witness heartbeat failed for: {}", registration.getRegistrationId()); } } catch (Exception e) { log.debug("Heartbeat error for registration: {}",
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 42K bytes - Viewed (0) -
cmd/bucket-targets.go
return nil } clnt.SetCustomTransport(globalRemoteTargetTransport) return clnt } // heartBeat performs liveness check on remote endpoints. func (sys *BucketTargetSys) heartBeat(ctx context.Context) { hcTimer := time.NewTimer(defaultHealthCheckDuration) defer hcTimer.Stop() for { select { case <-hcTimer.C: sys.hMutex.RLock()
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 20.9K bytes - Viewed (0)