Interface GroupManagementAgent
-
- All Known Implementing Classes:
DefaultGroupManagementAgent
public interface GroupManagementAgent
This is the interface through which the load balancing event are notified. This will only be used when this member is running in loadBalance mode. In order to do this, in the axis2.xml file, set the value of the "mode" parameter to "loadBalance" and then provide the class that implements this interface using the "loadBalanceEventHandler" entry.
-
-
Method Summary
All Methods Instance Methods Abstract 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 agent
-
-
-
Method Detail
-
setDescription
void setDescription(String description)
Set the description about this group management agent- Parameters:
description
- The description
-
getDescription
String getDescription()
Get the description about this group management agent- Returns:
- The description
-
applicationMemberAdded
void applicationMemberAdded(Member member)
An application member joined the application group- Parameters:
member
- Represents the member who joined
-
applicationMemberRemoved
void applicationMemberRemoved(Member member)
An application member left the application group- Parameters:
member
- Represents the member who left
-
getMembers
List<Member> getMembers()
Get the list of current members- Returns:
- List of current members
-
send
void send(GroupManagementCommand command) throws ClusteringFault
Send a GroupManagementCommand to the group- Parameters:
command
- The command- Throws:
ClusteringFault
- If an error occurs while sending the command
-
-