Interface GroupManagementAgent
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
Modifier and TypeMethodDescriptionvoidAdd a well-known membervoidapplicationMemberAdded(Member member) An application member joined the application groupvoidapplicationMemberRemoved(Member member) An application member left the application groupGet the description about this group management agentGet the list of current membersvoidsend(GroupManagementCommand command) Send a GroupManagementCommand to the groupvoidsetDescription(String description) Set the description about this group management agentvoidSet the cluster domainvoidsetGroupMgtPort(int groupMgtPort) The port used for the group management membervoidsetSubDomain(String subDomain) Set the cluster sub-domain
-
Method Details
-
setDomain
Set the cluster domain- Parameters:
domain- the cluster domain
-
setSubDomain
Set the cluster sub-domain- Parameters:
subDomain- the cluster sub-domain
-
setGroupMgtPort
void setGroupMgtPort(int groupMgtPort) The port used for the group management member- Parameters:
groupMgtPort- The clustering port for the group, if applicable
-
setDescription
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
An application member joined the application group- Parameters:
member- Represents the member who joined
-
applicationMemberRemoved
An application member left the application group- Parameters:
member- Represents the member who left
-
getMembers
Get the list of current members- Returns:
- List of current members
-
addMember
Add a well-known member- Parameters:
member- The well-known member
-
send
Send a GroupManagementCommand to the group- Parameters:
command- The command- Throws:
ClusteringFault- If an error occurs while sending the command
-