|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgroups.demos.ViewDemo
public class ViewDemo
Demos the reception of views using a PullPushAdapter. Just start a number of members, and kill them randomly. The view should always be correct.
Constructor Summary | |
---|---|
ViewDemo()
|
Method Summary | |
---|---|
void |
block()
Block sending and receiving of messages until ViewAccepted is called |
static void |
main(java.lang.String[] args)
|
void |
start(java.lang.String props,
boolean use_additional_data)
|
void |
suspect(Address suspected_mbr)
Called when a member is suspected |
void |
viewAccepted(View new_view)
Called when a change in membership has occurred. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewDemo()
Method Detail |
---|
public void viewAccepted(View new_view)
MembershipListener
viewAccepted
in interface MembershipListener
public void suspect(Address suspected_mbr)
suspect
in interface MembershipListener
public void block()
block
in interface MembershipListener
public void start(java.lang.String props, boolean use_additional_data) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |