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

java.lang.Object
  extended by org.apache.qpid.server.logging.actors.AbstractActor
All Implemented Interfaces:
LogActor
Direct Known Subclasses:
AMQPChannelActor, AMQPConnectionActor, BrokerActor, GenericActor, ManagementActor, QueueActor, SubscriptionActor

public abstract class AbstractActor
extends Object
implements LogActor


Field Summary
 String _msgPrefix
           
protected  RootMessageLogger _rootLogger
           
 
Constructor Summary
AbstractActor(RootMessageLogger rootLogger)
           
 
Method Summary
abstract  String getLogMessage()
           
 RootMessageLogger getRootMessageLogger()
           
 void message(LogMessage message)
          Logs the specified LogMessage against this actor Currently logging has a global setting however this will later be revised and as such the LogActor will need to take into consideration any new configuration as a means of enabling the logging of LogActors and LogSubjects.
 void message(LogSubject subject, LogMessage message)
          Logs the specified LogMessage about the LogSubject Currently logging has a global setting however this will later be revised and as such the LogActor will need to take into consideration any new configuration as a means of enabling the logging of LogActors and LogSubjects.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_msgPrefix

public final String _msgPrefix

_rootLogger

protected RootMessageLogger _rootLogger
Constructor Detail

AbstractActor

public AbstractActor(RootMessageLogger rootLogger)
Method Detail

message

public void message(LogSubject subject,
                    LogMessage message)
Description copied from interface: LogActor
Logs the specified LogMessage about the LogSubject Currently logging has a global setting however this will later be revised and as such the LogActor will need to take into consideration any new configuration as a means of enabling the logging of LogActors and LogSubjects.

Specified by:
message in interface LogActor
Parameters:
subject - The subject that is being logged
message - The message to log

message

public void message(LogMessage message)
Description copied from interface: LogActor
Logs the specified LogMessage against this actor Currently logging has a global setting however this will later be revised and as such the LogActor will need to take into consideration any new configuration as a means of enabling the logging of LogActors and LogSubjects.

Specified by:
message in interface LogActor
Parameters:
message - The message to log

getRootMessageLogger

public RootMessageLogger getRootMessageLogger()
Specified by:
getRootMessageLogger in interface LogActor
Returns:
the RootMessageLogger that is currently in use by this LogActor.

toString

public String toString()
Overrides:
toString in class Object

getLogMessage

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


Licensed to the Apache Software Foundation