AGENT
- public abstract class JMXAgentModule<AGENT extends AbstractAgent> extends AgentModule<AGENT> implements IJMXEnabled
enableJMX(MBeanServer, ObjectName)
to publish
the interface.
This module automatically registers itself into AbstractAgent.getJMX()
.
AgentJMXComponents
,
IJMXEnabled
agent, controller, eventBus, log
Constructor and Description |
---|
JMXAgentModule(AGENT agent)
Initialize agent module - it will start
ComponentDependencyType .STARTS_WITH the agent. |
JMXAgentModule(AGENT agent,
Logger log)
Initialize agent module - it will start
ComponentDependencyType .STARTS_WITH the agent. |
Modifier and Type | Method and Description |
---|---|
abstract void |
enableJMX(MBeanServer mBeanServer,
ObjectName parent)
Register JMX components.
|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString
public JMXAgentModule(AGENT agent)
ComponentDependencyType
.STARTS_WITH the agent.agent
- public JMXAgentModule(AGENT agent, Logger log)
ComponentDependencyType
.STARTS_WITH the agent.agent
- log
- should be used, if null is provided, it is created automaticallypublic abstract void enableJMX(MBeanServer mBeanServer, ObjectName parent) throws JMXAlreadyEnabledException, CantStartJMXException
enableJMX
in interface IJMXEnabled
mBeanServer
- server where the MBean of agent is registeredparent
- parent's ObjectName, should be used as base of name of
the registered MBeanJMXAlreadyEnabledException
CantStartJMXException
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.