org.apache.qpid.server.logging.actors
Class ManagementActor
java.lang.Object
org.apache.qpid.server.logging.actors.AbstractActor
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 |
_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
ManagementActor
public ManagementActor(RootMessageLogger rootLogger)
- Parameters:
rootLogger
- The RootLogger to use for this Actor
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