org.shoal.ha.group.gms
Class GroupServiceProvider
java.lang.Object
org.shoal.ha.group.gms.GroupServiceProvider
- All Implemented Interfaces:
- CallBack, GroupService
public class GroupServiceProvider
- extends java.lang.Object
- implements GroupService, CallBack
- Author:
- Mahesh Kannan
|
Constructor Summary |
GroupServiceProvider(java.lang.String myName,
java.lang.String groupName,
boolean startGMS)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupServiceProvider
public GroupServiceProvider(java.lang.String myName,
java.lang.String groupName,
boolean startGMS)
processNotification
public void processNotification(Signal notification)
- Specified by:
processNotification in interface CallBack
getCurrentCoreMembers
public java.util.List<java.lang.String> getCurrentCoreMembers()
- Specified by:
getCurrentCoreMembers in interface GroupService
shutdown
public void shutdown()
getGroupName
public java.lang.String getGroupName()
- Specified by:
getGroupName in interface GroupService
getMemberName
public java.lang.String getMemberName()
- Specified by:
getMemberName in interface GroupService
sendMessage
public boolean sendMessage(java.lang.String targetMemberName,
java.lang.String token,
byte[] data)
- Specified by:
sendMessage in interface GroupService
registerGroupMessageReceiver
public void registerGroupMessageReceiver(java.lang.String messageToken,
MessageReceiver receiver)
- Specified by:
registerGroupMessageReceiver in interface GroupService
registerGroupMemberEventListener
public void registerGroupMemberEventListener(GroupMemberEventListener listener)
- Specified by:
registerGroupMemberEventListener in interface GroupService
removeGroupMemberEventListener
public void removeGroupMemberEventListener(GroupMemberEventListener listener)
- Specified by:
removeGroupMemberEventListener in interface GroupService
close
public void close()
- Specified by:
close in interface GroupService
Copyright © 2010. All Rights Reserved.