Package com.adaptris.core.services.jmx
Class JmxOperationImpl
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.services.jmx.JmxOperationImpl
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,StateManagedComponent
- Direct Known Subclasses:
DynamicJmxOperationService
,JmxOperationServiceImpl
public abstract class JmxOperationImpl extends ServiceImp
Base abstract implementation for all JMX services.- Since:
- 3.6.5
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description JmxOperationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getObjectName()
java.lang.String
getOperationName()
java.util.List<ValueTranslator>
getOperationParameters()
protected void
initService()
protected java.lang.Object[]
parametersToArray(AdaptrisMessage message)
protected java.lang.String[]
parametersToTypeArray(AdaptrisMessage message)
void
setObjectName(java.lang.String s)
Set the object name to issue the operation against.void
setOperationName(java.lang.String s)
Set the operation to call.void
setOperationParameters(java.util.List<ValueTranslator> parameters)
Set the list ofValueTranslator
that will create the various parameters.-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, closeService, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepare
-
-
-
-
Method Detail
-
parametersToArray
protected java.lang.Object[] parametersToArray(AdaptrisMessage message) throws CoreException
- Throws:
CoreException
-
parametersToTypeArray
protected java.lang.String[] parametersToTypeArray(AdaptrisMessage message)
-
initService
protected void initService() throws CoreException
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
getObjectName
public java.lang.String getObjectName()
-
setObjectName
public void setObjectName(java.lang.String s)
Set the object name to issue the operation against.- Parameters:
s
- the object name.
-
getOperationName
public java.lang.String getOperationName()
-
setOperationName
public void setOperationName(java.lang.String s)
Set the operation to call.- Parameters:
s
- the operation.
-
getOperationParameters
public java.util.List<ValueTranslator> getOperationParameters()
-
setOperationParameters
public void setOperationParameters(java.util.List<ValueTranslator> parameters)
Set the list ofValueTranslator
that will create the various parameters.- Parameters:
parameters
- the operation parameters.
-
-