public class FailoverEndpoint extends AbstractEndpoint
anonymous, artifactContainerName, errorHandler, fileName, initialized, isClusteringEnabled, log, trace
Constructor and Description |
---|
FailoverEndpoint() |
Modifier and Type | Method and Description |
---|---|
void |
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isBuildMessageAtt() |
boolean |
isDynamic() |
void |
onChildEndpointFail(Endpoint endpoint,
MessageContext synMessageContext)
Endpoints that contain other endpoints should implement this method.
|
boolean |
readyToSend()
Returns true to indicate that the endpoint is ready to service requests
|
void |
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.
|
void |
setBuildMessageAtt(boolean buildMessage)
Set buildMessage Attribute from failover config
|
void |
setBuildMessageAttAvailable(boolean available)
Set whether failover config has the buildMessage config
|
void |
setDynamic(boolean dynamic) |
addProperties, addProperty, destroy, evaluateProperties, executeEpTypeSpecificFunctions, getArtifactContainerName, getChildren, getContext, getDefinition, getDescription, getErrorHandler, getFileName, getIsEdited, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, getReportingName, handleException, handleException, informFailure, isAnonymous, isInitialized, isLeafEndpoint, isRetry, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, logSetter, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAnonymous, setArtifactContainerName, setChildren, setComponentStatisticsId, setContentAware, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setForceBuildMC, setIsEdited, setName, setParentEndpoint, toString, traceOrDebug
getStackTrace, handleFault, handleFault
public void init(SynapseEnvironment synapseEnvironment)
ManagedLifecycle
init
in interface ManagedLifecycle
init
in class AbstractEndpoint
synapseEnvironment
- SynapseEnvironment to be used for initializationpublic void send(MessageContext synCtx)
Endpoint
send
in interface Endpoint
send
in class AbstractEndpoint
synCtx
- MessageContext to be sent.public void onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
Endpoint
onChildEndpointFail
in interface Endpoint
onChildEndpointFail
in class AbstractEndpoint
endpoint
- The child endpoint which caused the exception.synMessageContext
- MessageContext that was used in the failed attempt.public boolean readyToSend()
Endpoint
readyToSend
in interface Endpoint
readyToSend
in class AbstractEndpoint
public boolean isDynamic()
public boolean isBuildMessageAtt()
public void setDynamic(boolean dynamic)
public void setBuildMessageAtt(boolean buildMessage)
buildMessage
- true or falsepublic void setBuildMessageAttAvailable(boolean available)
available
- true or falseCopyright © 2005–2017 Apache Software Foundation. All rights reserved.