Package org.apache.synapse.core
Interface LoadBalanceMembershipHandler
-
- All Known Implementing Classes:
Axis2LoadBalanceMembershipHandler,ServiceLoadBalanceMembershipHandler
public interface LoadBalanceMembershipHandlerThis interface is responsible for providing the next member to which a message has to be sent to. Generally, this interface will work with a GCF or other membership discovery mechanism
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.axis2.context.ConfigurationContextgetConfigurationContext()Get the Axis2 ConfigurationContextLoadbalanceAlgorithmgetLoadbalanceAlgorithm()Get the algorithum uses in this membership handlerorg.apache.axis2.clustering.MembergetNextApplicationMember(AlgorithmContext context)Get the next application member to whom the message has to be sent toPropertiesgetProperties()get the properties used to init this membership handlervoidinit(Properties properties, LoadbalanceAlgorithm algorithm)Initialize thisvoidsetConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx)Set the Axis2 ConfigurationContext
-
-
-
Method Detail
-
init
void init(Properties properties, LoadbalanceAlgorithm algorithm)
Initialize this- Parameters:
properties- The properties specific to this LoadBalanceMembershipHandleralgorithm- The load balancing algorithm
-
setConfigurationContext
void setConfigurationContext(org.apache.axis2.context.ConfigurationContext configCtx)
Set the Axis2 ConfigurationContext- Parameters:
configCtx- Axis2 ConfigurationContext
-
getConfigurationContext
org.apache.axis2.context.ConfigurationContext getConfigurationContext()
Get the Axis2 ConfigurationContext- Returns:
- Axis2 ConfigurationContext
-
getNextApplicationMember
org.apache.axis2.clustering.Member getNextApplicationMember(AlgorithmContext context)
Get the next application member to whom the message has to be sent to- Parameters:
context- The AlgorithmContext which holds information needed for the algorithm- Returns:
- Next application member to whom the message has to be sent to
-
getLoadbalanceAlgorithm
LoadbalanceAlgorithm getLoadbalanceAlgorithm()
Get the algorithum uses in this membership handler- Returns:
- Load balance algorithm use for this Membership handler
-
getProperties
Properties getProperties()
get the properties used to init this membership handler- Returns:
- get the initial properties
-
-