Class DefaultGroupManagementAgent
- java.lang.Object
-
- org.apache.axis2.clustering.management.DefaultGroupManagementAgent
-
- All Implemented Interfaces:
GroupManagementAgent
public class DefaultGroupManagementAgent extends Object implements GroupManagementAgent
The default implementation ofGroupManagementAgent
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupManagementAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplicationMemberAdded(Member member)An application member joined the application groupvoidapplicationMemberRemoved(Member member)An application member left the application groupStringgetDescription()Get the description about this group management agentList<Member>getMembers()Get the list of current membersvoidsend(GroupManagementCommand command)Send a GroupManagementCommand to the groupvoidsetDescription(String description)Set the description about this group management agentvoidsetMembershipManager(MembershipManager membershipManager)voidsetSender(ChannelSender sender)
-
-
-
Method Detail
-
setSender
public void setSender(ChannelSender sender)
-
setMembershipManager
public void setMembershipManager(MembershipManager membershipManager)
-
getDescription
public String getDescription()
Description copied from interface:GroupManagementAgentGet the description about this group management agent- Specified by:
getDescriptionin interfaceGroupManagementAgent- Returns:
- The description
-
setDescription
public void setDescription(String description)
Description copied from interface:GroupManagementAgentSet the description about this group management agent- Specified by:
setDescriptionin interfaceGroupManagementAgent- Parameters:
description- The description
-
applicationMemberAdded
public void applicationMemberAdded(Member member)
Description copied from interface:GroupManagementAgentAn application member joined the application group- Specified by:
applicationMemberAddedin interfaceGroupManagementAgent- Parameters:
member- Represents the member who joined
-
applicationMemberRemoved
public void applicationMemberRemoved(Member member)
Description copied from interface:GroupManagementAgentAn application member left the application group- Specified by:
applicationMemberRemovedin interfaceGroupManagementAgent- Parameters:
member- Represents the member who left
-
getMembers
public List<Member> getMembers()
Description copied from interface:GroupManagementAgentGet the list of current members- Specified by:
getMembersin interfaceGroupManagementAgent- Returns:
- List of current members
-
send
public void send(GroupManagementCommand command) throws ClusteringFault
Description copied from interface:GroupManagementAgentSend a GroupManagementCommand to the group- Specified by:
sendin interfaceGroupManagementAgent- Parameters:
command- The command- Throws:
ClusteringFault- If an error occurs while sending the command
-
-