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

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

public class AMQPChannelActor
extends AbstractActor

An AMQPChannelActor represtents a connection through the AMQP port with an associated Channel.

This is responsible for correctly formatting the LogActor String in the log

[con:1(user@127.0.0.1/)/ch:1]

To do this it requires access to the IO Layers as well as a Channel


Field Summary
 
Fields inherited from class org.apache.qpid.server.logging.actors.AbstractActor
_msgPrefix, _rootLogger
 
Constructor Summary
AMQPChannelActor(AMQChannel channel, RootMessageLogger rootLogger)
          Create a new ChannelActor
 
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
 

Constructor Detail

AMQPChannelActor

public AMQPChannelActor(AMQChannel channel,
                        RootMessageLogger rootLogger)
Create a new ChannelActor

Parameters:
channel - The Channel for this LogActor
rootLogger - The root Logger that this LogActor should use
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