| java.lang.Object org.apache.synapse.endpoints.LoadbalanceEndpoint
LoadbalanceEndpoint | public class LoadbalanceEndpoint implements Endpoint(Code) | | Load balance endpoint can have multiple endpoints. It will route messages according to the
specified load balancing algorithm. This will assume that all immediate child endpoints are identical
in state (state is replicated) or state is not maintained at those endpoints. If an endpoint is
failing, the failed endpoint is marked as inactive and the message to the next endpoint obtained
using the load balancing algorithm. If all the endpoints have failed and the parent endpoint is
available, onChildEndpointFail(...) method of parent endpoint is called. If parent is not
available, this will call next FaultHandler for the message context.
|
isActive | public boolean isActive(MessageContext synMessageContext)(Code) | | If this endpoint is in inactive state, checks if all immediate child endpoints are still
failed. If so returns false. If at least one child endpoint is in active state, sets this
endpoint's state to active and returns true. As this a sessionless load balancing endpoint
having one active child endpoint is enough to consider this as active.
Parameters: synMessageContext - MessageContext of the current message. This is not used here. true if active. false otherwise. |
isFailover | public boolean isFailover()(Code) | | |
setEndpoints | public void setEndpoints(List endpoints)(Code) | | |
setFailover | public void setFailover(boolean failover)(Code) | | |
setParentEndpoint | public void setParentEndpoint(Endpoint parentEndpoint)(Code) | | |
|
|