public class DynamicLoadbalanceEndpoint extends LoadbalanceEndpoint
Modifier and Type | Field and Description |
---|---|
protected Dispatcher |
dispatcher
Dispatcher used for session affinity.
|
protected boolean |
sessionAffinity
Flag to enable session affinity based load balancing.
|
protected long |
sessionTimeout |
anonymous, errorHandler, fileName, initialized, isClusteringEnabled, trace
Constructor and Description |
---|
DynamicLoadbalanceEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected String |
extractSessionID(MessageContext synCtx,
String key) |
Dispatcher |
getDispatcher() |
LoadBalanceMembershipHandler |
getLbMembershipHandler() |
long |
getSessionTimeout() |
void |
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isSessionAffinityBasedLB() |
void |
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.
|
protected void |
sendToApplicationMember(MessageContext synCtx,
org.apache.axis2.clustering.Member currentMember,
DynamicLoadbalanceFaultHandler faultHandler,
boolean newSession) |
protected void |
setCookieHeader(MessageContext synCtx) |
void |
setDispatcher(Dispatcher dispatcher) |
void |
setLoadBalanceMembershipHandler(LoadBalanceMembershipHandler lbMembershipHandler) |
void |
setName(String name)
Set the name of an abstraction
|
void |
setSessionAffinity(boolean sessionAffinity) |
void |
setSessionTimeout(long sessionTimeout) |
destroy, getAlgorithm, getMembers, getNextChild, isFailover, onChildEndpointFail, readyToSend, setAlgorithm, setFailover, setMembers, startApplicationMembershipTimer
addProperties, addProperty, evaluateProperties, getChildren, getContext, getDefinition, getDescription, getErrorHandler, getFileName, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, handleException, handleException, informFailure, isAnonymous, isInitialized, isLeafEndpoint, isRetryDisabled, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAnonymous, setChildren, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setParentEndpoint, toString, traceOrDebug
getStackTrace, handleFault, handleFault
protected boolean sessionAffinity
protected Dispatcher dispatcher
protected long sessionTimeout
public void init(SynapseEnvironment synapseEnvironment)
ManagedLifecycle
init
in interface ManagedLifecycle
init
in class LoadbalanceEndpoint
synapseEnvironment
- SynapseEnvironment to be used for initializationpublic void setLoadBalanceMembershipHandler(LoadBalanceMembershipHandler lbMembershipHandler)
public LoadBalanceMembershipHandler getLbMembershipHandler()
public void send(MessageContext synCtx)
Endpoint
send
in interface Endpoint
send
in class LoadbalanceEndpoint
synCtx
- MessageContext to be sent.protected void setCookieHeader(MessageContext synCtx)
protected String extractSessionID(MessageContext synCtx, String key)
public void setName(String name)
Nameable
setName
in interface Nameable
setName
in class AbstractEndpoint
name
- String Representation of namepublic Dispatcher getDispatcher()
public void setDispatcher(Dispatcher dispatcher)
public long getSessionTimeout()
public void setSessionTimeout(long sessionTimeout)
public void setSessionAffinity(boolean sessionAffinity)
public boolean isSessionAffinityBasedLB()
protected void sendToApplicationMember(MessageContext synCtx, org.apache.axis2.clustering.Member currentMember, DynamicLoadbalanceFaultHandler faultHandler, boolean newSession)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.