|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javagroups.demos.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)
|
void |
suspect(Address suspected_mbr)
Called when a member is suspected |
void |
viewAccepted(View new_view)
Called by JavaGroups to notify the target object of a change of membership. |
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
../Tests/QuoteServer.java
).
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) 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 |