org.apache.axis2.clustering.management
Class DefaultGroupManagementAgent

java.lang.Object
  extended by org.apache.axis2.clustering.management.DefaultGroupManagementAgent
All Implemented Interfaces:
GroupManagementAgent

public class DefaultGroupManagementAgent
extends Object
implements GroupManagementAgent

The default implementation of GroupManagementAgent


Constructor Summary
DefaultGroupManagementAgent()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGroupManagementAgent

public DefaultGroupManagementAgent()
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 interface GroupManagementAgent
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 interface GroupManagementAgent
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 interface GroupManagementAgent
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 interface GroupManagementAgent
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 interface GroupManagementAgent
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 interface GroupManagementAgent
Parameters:
command - The command
Throws:
ClusteringFault - If an error occurs while sending the command


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.