com.caucho.hemp.services
Class BamLogService

java.lang.Object
  extended by com.caucho.bam.stream.AbstractMessageStream
      extended by com.caucho.bam.actor.SimpleActor
          extended by com.caucho.hemp.services.BamLogService
All Implemented Interfaces:
Actor, ActorHolder, ManagedActor, MessageStream

public class BamLogService
extends SimpleActor

log service


Constructor Summary
BamLogService()
           
 
Method Summary
 void message(java.lang.String to, java.lang.String from, java.io.Serializable value)
          Sends to a mailbox
protected  java.lang.String messageToText(java.io.Serializable value)
           
 void setLevel(java.lang.String level)
          Sets the level
 void setName(java.lang.String name)
          Sets the logger name.
 
Methods inherited from class com.caucho.bam.actor.SimpleActor
getActor, getAddress, getBroker, getMailbox, getSender, setAddress, setBroker, setMailbox
 
Methods inherited from class com.caucho.bam.stream.AbstractMessageStream
isClosed, messageError, query, queryError, queryResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.bam.stream.MessageStream
isClosed, messageError, query, queryError, queryResult
 

Constructor Detail

BamLogService

public BamLogService()
Method Detail

setName

public void setName(java.lang.String name)
Sets the logger name.


setLevel

public void setLevel(java.lang.String level)
Sets the level


message

public void message(java.lang.String to,
                    java.lang.String from,
                    java.io.Serializable value)
Sends to a mailbox

Specified by:
message in interface MessageStream
Overrides:
message in class AbstractMessageStream
Parameters:
to - the target actor's address
from - the source actor's address
value - the message payload

messageToText

protected java.lang.String messageToText(java.io.Serializable value)