Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added start/stopFailureDetection(): allows to turn off failure detect…

…ion via JMX/probe.sh
  • Loading branch information...
commit 42dbff4476c41733c6d0200da9e68ff2901da17d 1 parent aa90da9
@belaban authored
View
10 src/org/jgroups/protocols/FD.java
@@ -168,6 +168,16 @@ protected Monitor createMonitor() {
return new Monitor();
}
+ @ManagedOperation(description="Stops checking for crashed members")
+ public void stopFailureDetection() {
+ stopMonitor();
+ }
+
+ @ManagedOperation(description="Resumes checking for crashed members")
+ public void startFailureDetection() {
+ startMonitor();
+ }
+
/** Requires lock to held by caller */
@GuardedBy("lock")
private void startMonitor() {
View
10 src/org/jgroups/protocols/FD_ALL.java
@@ -125,6 +125,16 @@ public String printSuspectHistory() {
public String printTimestamps() {
return _printTimestamps();
}
+
+ @ManagedOperation(description="Stops checking for crashed members")
+ public void stopFailureDetection() {
+ stopTimeoutChecker();
+ }
+
+ @ManagedOperation(description="Resumes checking for crashed members")
+ public void startFailureDetection() {
+ startTimeoutChecker();
+ }
public void resetStats() {
Please sign in to comment.
Something went wrong with that request. Please try again.