Package org.apache.synapse.endpoints
Class ServiceDynamicLoadbalanceEndpoint
- java.lang.Object
-
- org.apache.synapse.FaultHandler
-
- org.apache.synapse.endpoints.AbstractEndpoint
-
- org.apache.synapse.endpoints.LoadbalanceEndpoint
-
- org.apache.synapse.endpoints.DynamicLoadbalanceEndpoint
-
- org.apache.synapse.endpoints.ServiceDynamicLoadbalanceEndpoint
-
- All Implemented Interfaces:
Endpoint
,ManagedLifecycle
,Nameable
,PropertyInclude
,SynapseArtifact
public class ServiceDynamicLoadbalanceEndpoint extends DynamicLoadbalanceEndpoint
Represents a dynamic load balance endpoint. The application membership is not static, but discovered through some mechanism such as using a GCF
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.endpoints.DynamicLoadbalanceEndpoint
dispatcher, sessionAffinity, sessionTimeout
-
Fields inherited from class org.apache.synapse.endpoints.AbstractEndpoint
anonymous, artifactContainerName, CHILDREN_JSON_ATT, errorHandler, fileName, initialized, isClusteringEnabled, NAME_JSON_ATT, trace, TYPE_JSON_ATT
-
-
Constructor Summary
Constructors Constructor Description ServiceDynamicLoadbalanceEndpoint()
ServiceDynamicLoadbalanceEndpoint(Map<String,String> hostDomainMap, LoadbalanceAlgorithm algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getHostDomainMap()
LoadBalanceMembershipHandler
getLbMembershipHandler()
void
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the implemented parts of the configuration.void
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.-
Methods inherited from class org.apache.synapse.endpoints.DynamicLoadbalanceEndpoint
extractSessionID, getDispatcher, getSessionTimeout, isSessionAffinityBasedLB, sendToApplicationMember, setCookieHeader, setDispatcher, setLoadBalanceMembershipHandler, setName, setSessionAffinity, setSessionTimeout, setupTransportHeaders
-
Methods inherited from class org.apache.synapse.endpoints.LoadbalanceEndpoint
createJsonRepresentation, destroy, getAlgorithm, getMembers, getNextChild, isBuildMessageAtt, isFailover, isInitialized, onChildEndpointFail, readyToSend, setAlgorithm, setBuildMessageAtt, setBuildMessageAttAvailable, setFailover, setMembers, startApplicationMembershipTimer
-
Methods inherited from class org.apache.synapse.endpoints.AbstractEndpoint
addProperties, addProperty, evaluateProperties, executeEpTypeSpecificFunctions, getArtifactContainerName, getChildren, getCommentsList, getContext, getDefinition, getDescription, getEndpointChildrenAsJson, getErrorHandler, getFileName, getIsEdited, getJsonRepresentation, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, getReportingName, handleException, 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, setParentEndpoint, toString, traceOrDebug
-
Methods inherited from class org.apache.synapse.FaultHandler
executeExtendedSynapseHandlerOnFault, getStackTrace, handleFault, handleFault
-
-
-
-
Constructor Detail
-
ServiceDynamicLoadbalanceEndpoint
public ServiceDynamicLoadbalanceEndpoint()
-
ServiceDynamicLoadbalanceEndpoint
public ServiceDynamicLoadbalanceEndpoint(Map<String,String> hostDomainMap, LoadbalanceAlgorithm algorithm)
-
-
Method Detail
-
init
public void init(SynapseEnvironment synapseEnvironment)
Description copied from interface:ManagedLifecycle
This method should implement the initialization of the implemented parts of the configuration.- Specified by:
init
in interfaceManagedLifecycle
- Overrides:
init
in classDynamicLoadbalanceEndpoint
- Parameters:
synapseEnvironment
- SynapseEnvironment to be used for initialization
-
getLbMembershipHandler
public LoadBalanceMembershipHandler getLbMembershipHandler()
- Overrides:
getLbMembershipHandler
in classDynamicLoadbalanceEndpoint
-
send
public void send(MessageContext synCtx)
Description copied from interface:Endpoint
Sends the message context according to an endpoint specific behavior.- Specified by:
send
in interfaceEndpoint
- Overrides:
send
in classDynamicLoadbalanceEndpoint
- Parameters:
synCtx
- MessageContext to be sent.
-
-