cz.cuni.amis.pogamut.base.agent.jmx
Interface IJMXEnabled

All Known Subinterfaces:
IAgentLogger
All Known Implementing Classes:
AbstractAgentLogger, Act, AgentLogger, AgentLoggerJMXProxy, FolderToIJMXEnabledAdapter, JMXAgentModule

public interface IJMXEnabled

Interface for enabling JMX on some feature.

This interface is marking that class supports JMX somehow and can be added to the agent who will call this method whenever this method is called on the whole agent.


Method Summary
 void enableJMX(javax.management.MBeanServer mBeanServer, javax.management.ObjectName parent)
          Method for starting the JMX extension of the class.
 

Method Detail

enableJMX

void enableJMX(javax.management.MBeanServer mBeanServer,
               javax.management.ObjectName parent)
               throws JMXAlreadyEnabledException,
                      CantStartJMXException
Method for starting the JMX extension of the class.

Object should register whatever objects it wants to expose via JMX.

Parameters:
mBeanServer - server where the MBean of agent is registered
parent - parent's ObjectName, should be used as base of name of the registered MBean
Throws:
JMXAlreadyEnabledException
CantStartJMXException