public abstract class JmxOperationServiceImpl extends JmxOperationImpl implements ConnectedService
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
JmxOperationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
AdaptrisConnection |
getConnection()
Returns the
AdaptrisConnection to use. |
protected void |
initService() |
void |
prepare()
Prepare for initialisation.
|
void |
setConnection(AdaptrisConnection c)
Sets the
AdaptrisConnection to use. |
void |
start()
Starts the component.
|
void |
stop()
Stop the component
|
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, doService, isBranching, setUniqueId
createName, createQualifier, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init
getLookupName
public void prepare() throws CoreException
ComponentLifecycleExtension
prepare
in interface ComponentLifecycleExtension
CoreException
protected void initService() throws CoreException
initService
in class JmxOperationImpl
CoreException
protected void closeService()
closeService
in class ServiceImp
public void stop()
ComponentLifecycle
A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer
, calling stop
will pause message delivery. Throwing a RuntimeException
may cause unintended consequences
stop
in interface ComponentLifecycle
stop
in class ServiceImp
public void start() throws CoreException
ComponentLifecycle
Once a component is started it should be ready to process messages. In the case of AdaptrisMessageConsumer
, calling start
will begin message delivery.
start
in interface ComponentLifecycle
start
in class ServiceImp
CoreException
- wrapping any underlying Exception
spublic AdaptrisConnection getConnection()
ConnectedService
AdaptrisConnection
to use.getConnection
in interface ConnectedService
public void setConnection(AdaptrisConnection c)
ConnectedService
AdaptrisConnection
to use.setConnection
in interface ConnectedService
c
- the connection to set