org.apache.qpid.server.logging.actors
Class ManagementActor

java.lang.Object
  extended by org.apache.qpid.server.logging.actors.AbstractActor
      extended by org.apache.qpid.server.logging.actors.ManagementActor
All Implemented Interfaces:
LogActor

public class ManagementActor
extends AbstractActor

NOTE: This actor is not thread safe. Sharing of a ManagementActor instance between threads may result in an incorrect actor value being logged. This is due to the fact that calls to message will dynamically query the thread name and use that to set the log format during each message() call. This is currently not an issue as each MBean operation creates a new Actor that is unique for each operation.


Field Summary
(package private)  String _lastThreadName
           
static String MANAGEMENT_FORMAT
          LOG FORMAT for the ManagementActor, Uses a MessageFormat call to insert the requried values according to these indicies: 0 - Connection ID 1 - User ID 2 - IP
 
Fields inherited from class org.apache.qpid.server.logging.actors.AbstractActor
_msgPrefix, _rootLogger
 
Constructor Summary
ManagementActor(RootMessageLogger rootLogger)
           
 
Method Summary
 String getLogMessage()
           
 
Methods inherited from class org.apache.qpid.server.logging.actors.AbstractActor
getRootMessageLogger, message, message, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_lastThreadName

String _lastThreadName

MANAGEMENT_FORMAT

public static final String MANAGEMENT_FORMAT
LOG FORMAT for the ManagementActor, Uses a MessageFormat call to insert the requried values according to these indicies: 0 - Connection ID 1 - User ID 2 - IP

See Also:
Constant Field Values
Constructor Detail

ManagementActor

public ManagementActor(RootMessageLogger rootLogger)
Parameters:
rootLogger - The RootLogger to use for this Actor
Method Detail

getLogMessage

public String getLogMessage()
Specified by:
getLogMessage in interface LogActor
Specified by:
getLogMessage in class AbstractActor
Returns:
the String representing this LogActor


Licensed to the Apache Software Foundation