|
||||||||||
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.SampleRule
public class SampleRule
Field Summary |
---|
Fields inherited from class org.jgroups.protocols.rules.Rule |
---|
log, sv |
Constructor Summary | |
---|---|
SampleRule()
|
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. |
java.lang.String |
name()
Returns the name of the rule. |
void |
trigger()
The action of the rule. |
Methods inherited from class org.jgroups.protocols.rules.Rule |
---|
destroy, init, log, run, supervisor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleRule()
Method Detail |
---|
public java.lang.String name()
Rule
name
in class Rule
public java.lang.String description()
Rule
description
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |