|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.patterns.notification.adaptor.GroupCommunicationsNotifier
public class GroupCommunicationsNotifier
This class defines a GroupCommunicationsNotifier
| Constructor Summary | |
|---|---|
GroupCommunicationsNotifier()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addListener(ResourceNotificationListener listener)
|
void |
failedMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1,
org.continuent.hedera.common.Member arg2)
|
int |
getJoinDelay()
|
java.lang.String |
getLastState()
Returns the lastState value. |
java.util.Map<java.lang.String,NotificationGroupMember> |
getNotificationGroupMembers()
|
void |
groupComposition(org.continuent.hedera.common.Group arg0,
org.continuent.hedera.common.IpAddress arg1,
int arg2)
|
void |
joinMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1)
|
void |
mergedMembers(org.continuent.hedera.common.GroupIdentifier arg0,
org.continuent.hedera.common.Member arg1,
java.util.List<org.continuent.hedera.common.Member> arg2,
java.util.List<org.continuent.hedera.common.Member> arg3,
java.util.List<org.continuent.hedera.common.Member> arg4)
|
void |
networkPartition(org.continuent.hedera.common.GroupIdentifier arg0,
java.util.List arg1)
|
void |
notifyListeners(ClusterResourceNotification notification)
|
void |
prepare()
Connects the notifier to group communications using generic Hedera interfaces. |
void |
quitMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1)
|
void |
receive(java.io.Serializable message)
Receives a message from group communications. |
void |
release()
Releases group communication channel |
void |
run()
|
void |
setChannelName(java.lang.String channelName)
|
void |
setJoinDelay(int joinDelay)
|
void |
setLastState(java.lang.String lastState)
Sets the lastState value. |
void |
setProperties(java.lang.String properties)
|
void |
suspectMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1,
org.continuent.hedera.common.Member arg2)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupCommunicationsNotifier()
| Method Detail |
|---|
public void setProperties(java.lang.String properties)
public void setChannelName(java.lang.String channelName)
public void prepare()
throws java.lang.Exception
prepare in interface ResourceNotifierjava.lang.ExceptionResourceNotifier.prepare()
public void notifyListeners(ClusterResourceNotification notification)
throws ResourceNotificationException
notifyListeners in interface ResourceNotifierResourceNotificationExceptionResourceNotifier.notifyListeners(com.continuent.tungsten.common.cluster.resource.notification.ClusterResourceNotification)public void release()
public void receive(java.io.Serializable message)
receive in interface org.continuent.hedera.adapters.MessageListenerMessageListener.receive(java.io.Serializable)public int getJoinDelay()
public void setJoinDelay(int joinDelay)
public void failedMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1,
org.continuent.hedera.common.Member arg2)
failedMember in interface org.continuent.hedera.gms.GroupMembershipListener
public void groupComposition(org.continuent.hedera.common.Group arg0,
org.continuent.hedera.common.IpAddress arg1,
int arg2)
groupComposition in interface org.continuent.hedera.gms.GroupMembershipListener
public void joinMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1)
joinMember in interface org.continuent.hedera.gms.GroupMembershipListener
public void mergedMembers(org.continuent.hedera.common.GroupIdentifier arg0,
org.continuent.hedera.common.Member arg1,
java.util.List<org.continuent.hedera.common.Member> arg2,
java.util.List<org.continuent.hedera.common.Member> arg3,
java.util.List<org.continuent.hedera.common.Member> arg4)
mergedMembers in interface org.continuent.hedera.gms.GroupMembershipListener
public void networkPartition(org.continuent.hedera.common.GroupIdentifier arg0,
java.util.List arg1)
networkPartition in interface org.continuent.hedera.gms.GroupMembershipListener
public void quitMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1)
quitMember in interface org.continuent.hedera.gms.GroupMembershipListener
public void suspectMember(org.continuent.hedera.common.Member arg0,
org.continuent.hedera.common.GroupIdentifier arg1,
org.continuent.hedera.common.Member arg2)
suspectMember in interface org.continuent.hedera.gms.GroupMembershipListenerpublic void addListener(ResourceNotificationListener listener)
addListener in interface ResourceNotifierpublic java.util.Map<java.lang.String,NotificationGroupMember> getNotificationGroupMembers()
getNotificationGroupMembers in interface ResourceNotifierpublic void run()
run in interface java.lang.Runnablepublic java.lang.String getLastState()
public void setLastState(java.lang.String lastState)
lastState - The lastState to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||