public class DefaultGroupManagementAgent extends Object implements GroupManagementAgent
GroupManagementAgent
Constructor and Description |
---|
DefaultGroupManagementAgent() |
Modifier and Type | Method and Description |
---|---|
void |
applicationMemberAdded(Member member)
An application member joined the application group
|
void |
applicationMemberRemoved(Member member)
An application member left the application group
|
String |
getDescription()
Get the description about this group management agent
|
List<Member> |
getMembers()
Get the list of current members
|
void |
send(GroupManagementCommand command)
Send a GroupManagementCommand to the group
|
void |
setDescription(String description)
Set the description about this group management agent
|
void |
setMembershipManager(MembershipManager membershipManager) |
void |
setSender(ChannelSender sender) |
public void setSender(ChannelSender sender)
public void setMembershipManager(MembershipManager membershipManager)
public String getDescription()
GroupManagementAgent
getDescription
in interface GroupManagementAgent
public void setDescription(String description)
GroupManagementAgent
setDescription
in interface GroupManagementAgent
description
- The descriptionpublic void applicationMemberAdded(Member member)
GroupManagementAgent
applicationMemberAdded
in interface GroupManagementAgent
member
- Represents the member who joinedpublic void applicationMemberRemoved(Member member)
GroupManagementAgent
applicationMemberRemoved
in interface GroupManagementAgent
member
- Represents the member who leftpublic List<Member> getMembers()
GroupManagementAgent
getMembers
in interface GroupManagementAgent
public void send(GroupManagementCommand command) throws ClusteringFault
GroupManagementAgent
send
in interface GroupManagementAgent
command
- The commandClusteringFault
- If an error occurs while sending the commandCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.