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 void
applicationMemberAdded(Member member)
An application member joined the application groupvoid
applicationMemberRemoved(Member member)
An application member left the application groupString
getDescription()
Get the description about this group management agentList<Member>
getMembers()
Get the list of current membersvoid
send(GroupManagementCommand command)
Send a GroupManagementCommand to the groupvoid
setDescription(String description)
Set the description about this group management agentvoid
setMembershipManager(MembershipManager membershipManager)
void
setSender(ChannelSender sender)
-
-
-
Method Detail
-
setSender
public void setSender(ChannelSender sender)
-
setMembershipManager
public void setMembershipManager(MembershipManager membershipManager)
-
getDescription
public String getDescription()
Description copied from interface:GroupManagementAgent
Get the description about this group management agent- Specified by:
getDescription
in interfaceGroupManagementAgent
- Returns:
- The description
-
setDescription
public void setDescription(String description)
Description copied from interface:GroupManagementAgent
Set the description about this group management agent- Specified by:
setDescription
in interfaceGroupManagementAgent
- Parameters:
description
- The description
-
applicationMemberAdded
public void applicationMemberAdded(Member member)
Description copied from interface:GroupManagementAgent
An application member joined the application group- Specified by:
applicationMemberAdded
in interfaceGroupManagementAgent
- Parameters:
member
- Represents the member who joined
-
applicationMemberRemoved
public void applicationMemberRemoved(Member member)
Description copied from interface:GroupManagementAgent
An application member left the application group- Specified by:
applicationMemberRemoved
in interfaceGroupManagementAgent
- Parameters:
member
- Represents the member who left
-
getMembers
public List<Member> getMembers()
Description copied from interface:GroupManagementAgent
Get the list of current members- Specified by:
getMembers
in interfaceGroupManagementAgent
- Returns:
- List of current members
-
send
public void send(GroupManagementCommand command) throws ClusteringFault
Description copied from interface:GroupManagementAgent
Send a GroupManagementCommand to the group- Specified by:
send
in interfaceGroupManagementAgent
- Parameters:
command
- The command- Throws:
ClusteringFault
- If an error occurs while sending the command
-
-