org.jpos.util
Class LogEvent

java.lang.Object
  extended by org.jpos.util.LogEvent
Direct Known Subclasses:
FrozenLogEvent

public class LogEvent
extends Object

Version:
$Id$
Author:
apr@cs.com.uy

Constructor Summary
LogEvent()
           
LogEvent(LogSource source, String tag)
           
LogEvent(LogSource source, String tag, Object msg)
           
LogEvent(String tag)
           
LogEvent(String tag, Object msg)
           
 
Method Summary
 void addMessage(Object msg)
           
 void addMessage(String tagname, String message)
           
 void dump(PrintStream p, String outer)
           
protected  String dumpHeader(PrintStream p, String indent)
           
protected  void dumpTrailer(PrintStream p, String indent)
           
 List<Object> getPayLoad()
          WARNING: payLoad is a SynchronizedList.
 String getRealm()
           
 LogSource getSource()
           
 String getTag()
           
 void setSource(LogSource source)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEvent

public LogEvent(String tag)

LogEvent

public LogEvent()

LogEvent

public LogEvent(String tag,
                Object msg)

LogEvent

public LogEvent(LogSource source,
                String tag)

LogEvent

public LogEvent(LogSource source,
                String tag,
                Object msg)
Method Detail

getTag

public String getTag()

addMessage

public void addMessage(Object msg)

addMessage

public void addMessage(String tagname,
                       String message)

getSource

public LogSource getSource()

setSource

public void setSource(LogSource source)

dumpHeader

protected String dumpHeader(PrintStream p,
                            String indent)

dumpTrailer

protected void dumpTrailer(PrintStream p,
                           String indent)

dump

public void dump(PrintStream p,
                 String outer)

getRealm

public String getRealm()

getPayLoad

public List<Object> getPayLoad()
WARNING: payLoad is a SynchronizedList. If you intend to get a reference to it in order to iterate over the list, you need to synchronize on the returned object.
     synchronized (evt.getPayLoad()) {
        Iterator iter = evt.getPayLoad().iterator();
        while (iter.hasNext()) {
            ...
            ...

        }
     }
 

Returns:
payLoad, which is a SynchronizedList

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1998-2012 jPOS.org. All Rights Reserved.