@ComponentProfile(summary="Execute a JMX operation", tag="service,jmx", recommended=JmxConnection.class) public class JmxWaitService extends JmxOperationServiceImpl
Allows you to make a remote call on a JMX operation and wait until the result from the JMX operation is "true"
You can set parameters for the call using ValueTranslator
implements. The result of the JMX operation is always
expected to be a Boolean
. When used in conjunction with InFlightWorkflowInterceptor
you can use this service
to pause processing until the workflow in question does not have any in flight messages.
In the adapter configuration file this class is aliased as jmx-wait-service which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
JmxWaitService() |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage message)
Apply the service to the message.
|
java.lang.Boolean |
getNegate() |
TimeInterval |
getRetryInterval() |
void |
setNegate(java.lang.Boolean n)
Switches the success criteria to
!operation if set to true. |
void |
setRetryInterval(TimeInterval retryInterval) |
closeService, getConnection, initService, prepare, setConnection, start, stop
getObjectName, getOperationName, getOperationParameters, parametersToArray, parametersToTypeArray, setObjectName, setOperationName, setOperationParameters
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
continueOnFailure, isBranching, setUniqueId
createName, createQualifier, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init
getLookupName
public void doService(AdaptrisMessage message) throws ServiceException
Service
Apply the service to the message.
message
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
spublic TimeInterval getRetryInterval()
public void setRetryInterval(TimeInterval retryInterval)
retryInterval
- the retryInterval to setpublic java.lang.Boolean getNegate()
public void setNegate(java.lang.Boolean n)
!operation
if set to true.n
- the negate to set, defaults to false.