|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Rulepublic java.lang.String description()
Rule
description in class Rulepublic void init()
Rule
init in class Rulepublic boolean eval()
RuleRule.condition()
should return a non-null string
eval in class Rulepublic java.lang.String condition()
RuleRule.eval() returning true
condition in class Rule
public void trigger()
throws java.lang.Throwable
RuleRule.eval() returned true
trigger in class Rulejava.lang.Throwablepublic 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 | |||||||||