org.apache.synapse.core
Interface LoadBalanceMembershipHandler

All Known Implementing Classes:
Axis2LoadBalanceMembershipHandler, ServiceLoadBalanceMembershipHandler

public interface LoadBalanceMembershipHandler

This 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
 ConfigurationContext getConfigurationContext()
          Get the Axis2 ConfigurationContext
 LoadbalanceAlgorithm getLoadbalanceAlgorithm()
          Get the algorithum uses in this membership handler
 Member getNextApplicationMember(AlgorithmContext context)
          Get the next application member to whom the message has to be sent to
 Properties getProperties()
          get the properties used to init this membership handler
 void init(Properties properties, LoadbalanceAlgorithm algorithm)
          Initialize this
 void setConfigurationContext(ConfigurationContext configCtx)
          Set the Axis2 ConfigurationContext
 

Method Detail

init

void init(Properties properties,
          LoadbalanceAlgorithm algorithm)
Initialize this

Parameters:
properties - The properties specific to this LoadBalanceMembershipHandler
algorithm - The load balancing algorithm

setConfigurationContext

void setConfigurationContext(ConfigurationContext configCtx)
Set the Axis2 ConfigurationContext

Parameters:
configCtx - Axis2 ConfigurationContext

getConfigurationContext

ConfigurationContext getConfigurationContext()
Get the Axis2 ConfigurationContext

Returns:
Axis2 ConfigurationContext

getNextApplicationMember

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


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.