org.jpos.util
Class BufferedLogListener

java.lang.Object
  extended by org.jpos.util.BufferedLogListener
All Implemented Interfaces:
EventListener, Configurable, LogListener, LogProducer

public class BufferedLogListener
extends Object
implements LogListener, Configurable, LogProducer


Field Summary
static int DEFAULT_SIZE
           
 
Constructor Summary
BufferedLogListener()
           
 
Method Summary
 void addListener(LogListener listener)
           
 int getMaxSize()
           
 LogEvent log(LogEvent ev)
           
 void removeAllListeners()
           
 void removeListener(LogListener listener)
           
 void setConfiguration(Configuration cfg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SIZE

public static final int DEFAULT_SIZE
See Also:
Constant Field Values
Constructor Detail

BufferedLogListener

public BufferedLogListener()
Method Detail

log

public LogEvent log(LogEvent ev)
Specified by:
log in interface LogListener

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Specified by:
setConfiguration in interface Configurable
Parameters:
cfg - Configuration object
Throws:
ConfigurationException

addListener

public void addListener(LogListener listener)
Specified by:
addListener in interface LogProducer

removeListener

public void removeListener(LogListener listener)
Specified by:
removeListener in interface LogProducer

removeAllListeners

public void removeAllListeners()
Specified by:
removeAllListeners in interface LogProducer

getMaxSize

public int getMaxSize()


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