|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@MXBean public interface IAgentMBeanAdapter
Interface for the adapter of the Agent MBean.
Method Summary | |
---|---|
java.lang.String |
getComponentId()
Returns id of the agent - unique across the JVMs. |
java.lang.String |
getName()
Returns human readable name. |
javax.management.ObjectName |
getObjectName(java.lang.String domain)
Returns JMX object name of the MBean. |
IAgentState |
getState()
Returns the state of the agent (whether it's running / dead / etc.). |
void |
kill()
Stops the agent (unconditionally), closing whatever connection it may have, this method must be non-blocking + interrupting all the communication, logic or whatever threads the agent may have. |
void |
pause()
This should pause the the agent. |
void |
resume()
This should resume the logic of the agent. |
void |
start()
Attempt to launch the agent. |
void |
stop()
Attempt to stop the agent, usually meaning dropping all running flags and see whether it will stop automatically. |
Method Detail |
---|
javax.management.ObjectName getObjectName(java.lang.String domain) throws javax.management.MalformedObjectNameException
domain
- jmx domain
javax.management.MalformedObjectNameException
java.lang.String getComponentId()
java.lang.String getName()
IAgentState getState()
Note that the type AgentState wraps two things:
void start() throws AgentException
AgentException
void pause() throws AgentException
AgentException
void resume() throws AgentException
AgentException
void stop() throws AgentException
If the stop can not complete - it must automatically call kill() method.
AgentException
void kill()
After calling kill() method, the only method that may be called is getState() to examine state of the agent.
This also equals to "exception happened outside the agent" and "IFatalErrorEvent
should be propagated inside
the agent"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |