org.jpos.util
Class LogEvent
java.lang.Object
org.jpos.util.LogEvent
- Direct Known Subclasses:
- FrozenLogEvent
public class LogEvent
- extends Object
- Version:
- $Id$
- Author:
- apr@cs.com.uy
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)
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.