@ComponentProfile(summary="Execute a JMX operation", tag="service,jmx", recommended=JmxConnection.class) public class JmxOperationCallService extends JmxOperationServiceImpl
Allows you to make a remote call on a JMX operation.
You can set parameters for the call using ValueTranslator
's and also a single
ValueTranslator
to help translate the result back into the Message.
If you do not wish to translate the result of the operation, simply omit the "result-value-translator".
In the adapter configuration file this class is aliased as jmx-operation-call-service which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
JmxOperationCallService() |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage message)
Apply the service to the message.
|
ValueTranslator |
getResultValueTranslator() |
void |
setResultValueTranslator(ValueTranslator resultValueTranslator) |
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 ValueTranslator getResultValueTranslator()
public void setResultValueTranslator(ValueTranslator resultValueTranslator)