cz.cuni.amis.pogamut.base.utils.logging
Interface IJMXAgentLogger

All Known Subinterfaces:
IAgentLogger
All Known Implementing Classes:
AbstractAgentLogger, AgentLogger, AgentLoggerJMXProxy

@MXBean
public interface IJMXAgentLogger

Part of the IAgentLogger interface that is exposed via MBean.


Method Summary
 void addDefaultNetworkHandler()
          Adds network handler to every existing LogCategory plus to every new one.
 java.lang.String getNetworkLoggerHost()
          Returns a host where NetworkLogManager is listening.
 java.lang.Integer getNetworkLoggerPort()
          Returns port where NetworkLogManager is listening.
 boolean isDefaultNetworkHandler()
          Tells whether the logger has default network handler attached.
 void removeDefaultNetworkHandler()
          Removes default network handler from every existing LogCategory.
 

Method Detail

getNetworkLoggerPort

java.lang.Integer getNetworkLoggerPort()
Returns port where NetworkLogManager is listening.

Returns null if network logging is not enabled.

Returns:

getNetworkLoggerHost

java.lang.String getNetworkLoggerHost()
Returns a host where NetworkLogManager is listening.

Returns null if network logging is not enabled.

Returns:

addDefaultNetworkHandler

void addDefaultNetworkHandler()
Adds network handler to every existing LogCategory plus to every new one.

Enables utilization of NetworkLogManager for publishing all logs of this logger.


removeDefaultNetworkHandler

void removeDefaultNetworkHandler()
Removes default network handler from every existing LogCategory.


isDefaultNetworkHandler

boolean isDefaultNetworkHandler()
Tells whether the logger has default network handler attached.

It allows you to query whether the agent logger is outputting its logs to the NetworkLogManager or not.

Returns: