|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.protocols.rules.Rule org.jgroups.protocols.rules.CheckFDMonitor
public class CheckFDMonitor
Rule which checks if the FD monitor is running when we have more than 1 member. If not, starts it. The rule uninstalls itself if no FD protocol is found.
Field Summary | |
---|---|
protected FD |
fd
|
Fields inherited from class org.jgroups.protocols.rules.Rule |
---|
log, sv |
Constructor Summary | |
---|---|
CheckFDMonitor()
|
Method Summary | |
---|---|
java.lang.String |
condition()
Returns a description of the condition that led to Rule.eval() returning true |
java.lang.String |
description()
Describes what the rules does |
boolean |
eval()
Evaluates the condition. |
void |
init()
Called when rule is installed |
java.lang.String |
name()
Returns the name of the rule. |
java.lang.String |
toString()
|
void |
trigger()
The action of the rule. |
Methods inherited from class org.jgroups.protocols.rules.Rule |
---|
destroy, log, run, supervisor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected FD fd
Constructor Detail |
---|
public CheckFDMonitor()
Method Detail |
---|
public java.lang.String name()
Rule
name
in class Rule
public java.lang.String description()
Rule
description
in class Rule
public void init()
Rule
init
in class Rule
public boolean eval()
Rule
Rule.condition()
should return a non-null string
eval
in class Rule
public java.lang.String condition()
Rule
Rule.eval()
returning true
condition
in class Rule
public void trigger() throws java.lang.Throwable
Rule
Rule.eval()
returned true
trigger
in class Rule
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |