|
||||||||||
| 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.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 Rulepublic java.lang.String description()
Rule
description 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.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||