public class ServiceLoadBalanceMembershipHandler extends Object implements LoadBalanceMembershipHandler
Constructor and Description |
---|
ServiceLoadBalanceMembershipHandler(Map<String,String> hostDomainMap,
LoadbalanceAlgorithm algorithm,
org.apache.axis2.context.ConfigurationContext configCtx,
boolean isClusteringEnabled,
String endpointName) |
Modifier and Type | Method and Description |
---|---|
org.apache.axis2.context.ConfigurationContext |
getConfigurationContext()
Get the Axis2 ConfigurationContext
|
LoadbalanceAlgorithm |
getLoadbalanceAlgorithm()
Get the algorithum uses in this membership handler
|
org.apache.axis2.clustering.Member |
getNextApplicationMember(AlgorithmContext context)
Deprecated.
|
org.apache.axis2.clustering.Member |
getNextApplicationMember(String host) |
Properties |
getProperties()
get the properties used to init this membership handler
|
void |
init(Properties props,
LoadbalanceAlgorithm algorithm)
Initialize this
|
void |
setConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx)
Set the Axis2 ConfigurationContext
|
public ServiceLoadBalanceMembershipHandler(Map<String,String> hostDomainMap, LoadbalanceAlgorithm algorithm, org.apache.axis2.context.ConfigurationContext configCtx, boolean isClusteringEnabled, String endpointName)
public void init(Properties props, LoadbalanceAlgorithm algorithm)
LoadBalanceMembershipHandler
init
in interface LoadBalanceMembershipHandler
props
- The properties specific to this LoadBalanceMembershipHandleralgorithm
- The load balancing algorithmpublic void setConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx)
LoadBalanceMembershipHandler
setConfigurationContext
in interface LoadBalanceMembershipHandler
configCtx
- Axis2 ConfigurationContextpublic org.apache.axis2.context.ConfigurationContext getConfigurationContext()
LoadBalanceMembershipHandler
getConfigurationContext
in interface LoadBalanceMembershipHandler
public org.apache.axis2.clustering.Member getNextApplicationMember(AlgorithmContext context)
getNextApplicationMember(String)
getNextApplicationMember
in interface LoadBalanceMembershipHandler
context
- The AlgorithmContextpublic org.apache.axis2.clustering.Member getNextApplicationMember(String host)
public LoadbalanceAlgorithm getLoadbalanceAlgorithm()
LoadBalanceMembershipHandler
getLoadbalanceAlgorithm
in interface LoadBalanceMembershipHandler
public Properties getProperties()
LoadBalanceMembershipHandler
getProperties
in interface LoadBalanceMembershipHandler
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.