Class JmxOperationCallService

All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConnectedService, MessageEventGenerator, Service, StateManagedComponent

@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".

Since:
3.0.3

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.

  • Constructor Details

    • JmxOperationCallService

      public JmxOperationCallService()
  • Method Details

    • doService

      public void doService(AdaptrisMessage message) throws ServiceException
      Description copied from interface: Service

      Apply the service to the message.

      Parameters:
      message - the AdaptrisMessage to process
      Throws:
      ServiceException - wrapping any underlying Exceptions
    • getResultValueTranslator

      public ValueTranslator getResultValueTranslator()
    • setResultValueTranslator

      public void setResultValueTranslator(ValueTranslator resultValueTranslator)