de.bea.domingo.monitor
Class AbstractStreamMonitor

java.lang.Object
  extended by de.bea.domingo.monitor.AbstractMonitor
      extended by de.bea.domingo.monitor.AbstractDefaultMonitor
          extended by de.bea.domingo.monitor.AbstractStreamMonitor
All Implemented Interfaces:
DNotesMonitor
Direct Known Subclasses:
ConsoleMonitor, FileMonitor

public abstract class AbstractStreamMonitor
extends AbstractDefaultMonitor

Abstract stream monitor, logs everything to a PrintStream.

Author:
Kurt Riede

Field Summary
 
Fields inherited from class de.bea.domingo.monitor.AbstractMonitor
LEVELS
 
Fields inherited from interface de.bea.domingo.DNotesMonitor
DEBUG, DEFAULT_LEVEL, ERROR, FATAL, INFO, NONE, WARN
 
Constructor Summary
AbstractStreamMonitor(java.io.PrintStream theStream)
          Constructor.
 
Method Summary
protected  void monitor(java.lang.String message)
          Monitor a message.
protected  void monitor(java.lang.Throwable throwable)
          Monitor a throwable.
 
Methods inherited from class de.bea.domingo.monitor.AbstractDefaultMonitor
debug, debug, error, error, fatalError, fatalError, info, info, warn, warn
 
Methods inherited from class de.bea.domingo.monitor.AbstractMonitor
isDebugEnabled, isErrorEnabled, isFatalErrorEnabled, isInfoEnabled, isNoMesssages, isWarnEnabled, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStreamMonitor

public AbstractStreamMonitor(java.io.PrintStream theStream)
Constructor.

Parameters:
theStream - the output stream for monitoring
Method Detail

monitor

protected final void monitor(java.lang.String message)
Monitor a message.

Specified by:
monitor in class AbstractDefaultMonitor
Parameters:
message - the message

monitor

protected final void monitor(java.lang.Throwable throwable)
Monitor a throwable.

Specified by:
monitor in class AbstractDefaultMonitor
Parameters:
throwable - the throwable


Domingo Java-API