public class LoadbalanceEndpoint extends AbstractEndpoint
anonymous, errorHandler, fileName, initialized, isClusteringEnabled, log, trace| Constructor and Description |
|---|
LoadbalanceEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
LoadbalanceAlgorithm |
getAlgorithm() |
List<org.apache.axis2.clustering.Member> |
getMembers() |
protected Endpoint |
getNextChild(MessageContext synCtx) |
void |
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isFailover() |
void |
onChildEndpointFail(Endpoint endpoint,
MessageContext synMessageContext)
Endpoints that contain other endpoints should implement this method.
|
boolean |
readyToSend()
If this endpoint is in inactive state, checks if all immediate child endpoints are still
failed.
|
void |
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.
|
void |
setAlgorithm(LoadbalanceAlgorithm algorithm) |
void |
setFailover(boolean failover) |
void |
setMembers(List<org.apache.axis2.clustering.Member> members) |
void |
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, setName, setParentEndpoint, toString, traceOrDebuggetStackTrace, handleFault, handleFaultpublic void init(SynapseEnvironment synapseEnvironment)
ManagedLifecycleinit in interface ManagedLifecycleinit in class AbstractEndpointsynapseEnvironment - SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycledestroy in interface ManagedLifecycledestroy in class AbstractEndpointpublic void send(MessageContext synCtx)
Endpointsend in interface Endpointsend in class AbstractEndpointsynCtx - MessageContext to be sent.public boolean readyToSend()
readyToSend in interface EndpointreadyToSend in class AbstractEndpointpublic void onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
EndpointonChildEndpointFail in interface EndpointonChildEndpointFail in class AbstractEndpointendpoint - The child endpoint which caused the exception.synMessageContext - MessageContext that was used in the failed attempt.public boolean isFailover()
public void setFailover(boolean failover)
public LoadbalanceAlgorithm getAlgorithm()
public void setAlgorithm(LoadbalanceAlgorithm algorithm)
protected Endpoint getNextChild(MessageContext synCtx)
public void setMembers(List<org.apache.axis2.clustering.Member> members)
public List<org.apache.axis2.clustering.Member> getMembers()
public void startApplicationMembershipTimer()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.