public class Axis2LoadBalanceMembershipHandler extends Object implements LoadBalanceMembershipHandler
Constructor and Description |
---|
Axis2LoadBalanceMembershipHandler() |
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)
Getting the next member to which the request has to be sent in a round-robin fashion
|
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 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
in interface LoadBalanceMembershipHandler
context
- The AlgorithmContextpublic LoadbalanceAlgorithm getLoadbalanceAlgorithm()
LoadBalanceMembershipHandler
getLoadbalanceAlgorithm
in interface LoadBalanceMembershipHandler
public Properties getProperties()
LoadBalanceMembershipHandler
getProperties
in interface LoadBalanceMembershipHandler
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.