Permalink
Browse files

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

…ion via JMX/probe.sh
  • Loading branch information...
1 parent aa90da9 commit 42dbff4476c41733c6d0200da9e68ff2901da17d Bela Ban committed Feb 11, 2011
Showing with 20 additions and 0 deletions.
  1. +10 −0 src/org/jgroups/protocols/FD.java
  2. +10 −0 src/org/jgroups/protocols/FD_ALL.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() {
@@ -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() {

0 comments on commit 42dbff4

Please sign in to comment.