public class LoadbalanceEndpoint extends AbstractEndpoint
anonymous, artifactContainerName, CHILDREN_JSON_ATT, errorHandler, fileName, initialized, isClusteringEnabled, log, NAME_JSON_ATT, trace, TYPE_JSON_ATT| Constructor and Description |
|---|
LoadbalanceEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createJsonRepresentation() |
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 |
isBuildMessageAtt() |
boolean |
isFailover() |
boolean |
isInitialized()
NOTE: Override org.apache.synapse.endpoints.AbstractEndpoint#isInitialized() to ensure return true only after LB
Endpoint get fully initialized.
|
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 |
setBuildMessageAtt(boolean build) |
void |
setBuildMessageAttAvailable(boolean available) |
void |
setFailover(boolean failover) |
void |
setMembers(List<org.apache.axis2.clustering.Member> members) |
void |
startApplicationMembershipTimer() |
addProperties, addProperty, evaluateProperties, executeEpTypeSpecificFunctions, getArtifactContainerName, getChildren, getCommentsList, getContext, getDefinition, getDescription, getEndpointChildrenAsJson, getErrorHandler, getFileName, getIsEdited, getJsonRepresentation, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, getReportingName, handleException, handleException, informFailure, isAnonymous, isLeafEndpoint, isRetry, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, logSetter, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAdvancedProperties, setAnonymous, setArtifactContainerName, setChildren, setCommentsList, setComponentStatisticsId, setContentAware, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setForceBuildMC, setIsEdited, 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 boolean isInitialized()
isInitialized in interface EndpointisInitialized in class AbstractEndpointprotected void createJsonRepresentation()
createJsonRepresentation 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 boolean isBuildMessageAtt()
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()
public void setBuildMessageAtt(boolean build)
public void setBuildMessageAttAvailable(boolean available)
Copyright © 2005–2024 Apache Software Foundation. All rights reserved.