public class SingletonClusterParticipant extends Object implements ClusterParticipant, org.jgroups.blocks.RequestHandler, org.jgroups.MembershipListener
| Constructor and Description |
|---|
SingletonClusterParticipant(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
block() |
Object |
handle(org.jgroups.Message msg) |
org.jgroups.Address |
id() |
boolean |
isMaster() |
boolean |
isMasterWithoutInterrogatingCluster() |
void |
setClusterChangeCallback(ClusterChangeCallback callback) |
void |
suspect(org.jgroups.Address suspected_mbr) |
void |
unblock() |
void |
viewAccepted(org.jgroups.View view) |
public SingletonClusterParticipant(String name)
public void viewAccepted(org.jgroups.View view)
viewAccepted in interface org.jgroups.MembershipListenerpublic void suspect(org.jgroups.Address suspected_mbr)
suspect in interface org.jgroups.MembershipListenerpublic void block()
block in interface org.jgroups.MembershipListenerpublic void unblock()
unblock in interface org.jgroups.MembershipListenerpublic Object handle(org.jgroups.Message msg)
handle in interface org.jgroups.blocks.RequestHandlerpublic org.jgroups.Address id()
public boolean isMasterWithoutInterrogatingCluster()
public void setClusterChangeCallback(ClusterChangeCallback callback)
setClusterChangeCallback in interface ClusterParticipantpublic boolean isMaster()
isMaster in interface ClusterParticipantCopyright © 2015. All Rights Reserved.