|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.utils.logging.AbstractAgentLogger cz.cuni.amis.pogamut.base.utils.logging.jmx.AgentLoggerJMXProxy
public class AgentLoggerJMXProxy
Makes remote AgentLogger look like local logger. The communication is handled through JMX interface.
IJMXAgentLogger
interface is fully proxied (executes JMX remote calls).
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.base.utils.logging.AbstractAgentLogger |
---|
agentId, LOG_CATEGORY_NAME |
Constructor Summary | |
---|---|
AgentLoggerJMXProxy(IAgentId agentName,
MBeanServerConnection mbsc,
ObjectName parentName)
|
Method Summary | |
---|---|
void |
addDefaultNetworkHandler()
Executes JMX remote call to the proxied IAgentLogger.addDefaultNetworkHandler() method. |
void |
enableJMX(MBeanServer mBeanServer,
ObjectName parent)
Method for starting the JMX extension of the class. |
protected ILogCategories |
getLogCategories()
|
String |
getNetworkLoggerHost()
Executes JMX remote call to the proxied IAgentLogger.getNetworkLoggerHost() method. |
Integer |
getNetworkLoggerPort()
Executes JMX remote call to the proxied IAgentLogger.getNetworkLoggerPort() method. |
boolean |
isDefaultNetworkHandler()
Executes JMX remote call to the proxied IAgentLogger.isDefaultNetworkHandler() method. |
void |
removeDefaultNetworkHandler()
Executes JMX remote call to the proxied IAgentLogger.removeDefaultNetworkHandler() method. |
Methods inherited from class cz.cuni.amis.pogamut.base.utils.logging.AbstractAgentLogger |
---|
addDefaultConsoleHandler, addDefaultFileHandler, addDefaultHandler, addDefaultPublisher, addToAllCategories, addToAllCategories, getAgentId, getCategories, getCategory, getCategory, getDefaultConsoleHandler, getDefaultNetworkHandler, isDefaultConsoleHandler, removeDefaultConsoleHandler, removeDefaultHandler, removeFromAllCategories, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentLoggerJMXProxy(IAgentId agentName, MBeanServerConnection mbsc, ObjectName parentName)
Method Detail |
---|
protected ILogCategories getLogCategories()
getLogCategories
in class AbstractAgentLogger
public void enableJMX(MBeanServer mBeanServer, ObjectName parent) throws JMXAlreadyEnabledException, CantStartJMXException
IJMXEnabled
Object should register whatever objects it wants to expose via JMX.
mBeanServer
- server where the MBean of agent is registeredparent
- parent's ObjectName, should be used as base of name of
the registered MBean
JMXAlreadyEnabledException
CantStartJMXException
public String getNetworkLoggerHost()
IAgentLogger.getNetworkLoggerHost()
method.
getNetworkLoggerHost
in interface IAgentLogger
getNetworkLoggerHost
in interface IJMXAgentLogger
getNetworkLoggerHost
in class AbstractAgentLogger
IAgentLogger.getNetworkLoggerHost()
public Integer getNetworkLoggerPort()
IAgentLogger.getNetworkLoggerPort()
method.
getNetworkLoggerPort
in interface IAgentLogger
getNetworkLoggerPort
in interface IJMXAgentLogger
getNetworkLoggerPort
in class AbstractAgentLogger
IAgentLogger.getNetworkLoggerPort()
public void addDefaultNetworkHandler()
IAgentLogger.addDefaultNetworkHandler()
method.
addDefaultNetworkHandler
in interface IAgentLogger
addDefaultNetworkHandler
in interface IJMXAgentLogger
addDefaultNetworkHandler
in class AbstractAgentLogger
IAgentLogger.addDefaultNetworkHandler()
public void removeDefaultNetworkHandler()
IAgentLogger.removeDefaultNetworkHandler()
method.
removeDefaultNetworkHandler
in interface IAgentLogger
removeDefaultNetworkHandler
in interface IJMXAgentLogger
removeDefaultNetworkHandler
in class AbstractAgentLogger
IAgentLogger.removeDefaultNetworkHandler()
public boolean isDefaultNetworkHandler()
IAgentLogger.isDefaultNetworkHandler()
method.
isDefaultNetworkHandler
in interface IAgentLogger
isDefaultNetworkHandler
in interface IJMXAgentLogger
isDefaultNetworkHandler
in class AbstractAgentLogger
IAgentLogger.isDefaultNetworkHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |