org.apache.stratos.cartridge.agent
Class ClusteringClient
java.lang.Object
org.apache.stratos.cartridge.agent.ClusteringClient
public class ClusteringClient
- extends Object
This class is used for all Axis2 clustering related activities such as joining the load balancer
& joining registrants to clustering groups.
|
Method Summary |
void |
init(Properties conf,
org.apache.axis2.context.ConfigurationContext configurationContext,
org.apache.axis2.clustering.MembershipListener membershipListener)
|
void |
joinGroup(Registrant registrant,
org.apache.axis2.context.ConfigurationContext configurationContext)
Join a cluster group of the Elastic Load Balancer |
void |
removeClusterDomain(String domain,
String subDomain,
String hostName,
org.apache.axis2.context.ConfigurationContext configurationContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RANDOM
public static final Random RANDOM
ClusteringClient
public ClusteringClient(RegistrantDatabase registrantDatabase)
init
public void init(Properties conf,
org.apache.axis2.context.ConfigurationContext configurationContext,
org.apache.axis2.clustering.MembershipListener membershipListener)
throws CartridgeAgentException
- Throws:
CartridgeAgentException
joinGroup
public void joinGroup(Registrant registrant,
org.apache.axis2.context.ConfigurationContext configurationContext)
throws CartridgeAgentException
- Join a cluster group of the Elastic Load Balancer
- Parameters:
registrant - RegistrantconfigurationContext - ConfigurationContext
- Throws:
CartridgeAgentException - If an error occurs while joining a cluster group
removeClusterDomain
public void removeClusterDomain(String domain,
String subDomain,
String hostName,
org.apache.axis2.context.ConfigurationContext configurationContext)
throws CartridgeAgentException
- Throws:
CartridgeAgentException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.