|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.monitor.AbstractMonitor de.bea.domingo.monitor.AbstractDefaultMonitor
public abstract class AbstractDefaultMonitor
Abstract base class for implementations of the Monitor interface.
This class unifies logging to a single method for easy sub classing.
Subclasses only have to implement the two methods
monitor(java.lang.String)
and
monitor(java.lang.Throwable)
.
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 | |
---|---|
AbstractDefaultMonitor()
Default constructor. |
|
AbstractDefaultMonitor(int theLevel)
Constructor. |
Method Summary | |
---|---|
void |
debug(java.lang.String s)
debug output. |
void |
debug(java.lang.String s,
java.lang.Throwable throwable)
debug output. |
void |
error(java.lang.String s)
error output. |
void |
error(java.lang.String s,
java.lang.Throwable throwable)
error output. |
void |
fatalError(java.lang.String s)
fatal error output. |
void |
fatalError(java.lang.String s,
java.lang.Throwable throwable)
fatal error output. |
void |
info(java.lang.String s)
info output. |
void |
info(java.lang.String s,
java.lang.Throwable throwable)
info output. |
protected abstract void |
monitor(java.lang.String message)
Abstract monitoring method, must be implemented by concrete monitors. |
protected abstract void |
monitor(java.lang.Throwable throwable)
Abstract monitoring method, must be implemented by concrete monitors. |
void |
warn(java.lang.String s)
warn output. |
void |
warn(java.lang.String s,
java.lang.Throwable throwable)
warn output. |
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 |
---|
public AbstractDefaultMonitor()
public AbstractDefaultMonitor(int theLevel)
theLevel
- the level of the new monitor, can be one of
DEBUG
,
INFO
,
WARN
,
ERROR
or
FATAL
Method Detail |
---|
public final void debug(java.lang.String s)
s
- the messageDNotesMonitor.debug(java.lang.String)
public final void debug(java.lang.String s, java.lang.Throwable throwable)
s
- the messagethrowable
- the throwableDNotesMonitor.debug(java.lang.String, java.lang.Throwable)
public final void info(java.lang.String s)
s
- the messageDNotesMonitor.info(java.lang.String)
public final void info(java.lang.String s, java.lang.Throwable throwable)
s
- the messagethrowable
- the throwableDNotesMonitor.info(java.lang.String, java.lang.Throwable)
public final void warn(java.lang.String s)
s
- the messageDNotesMonitor.warn(java.lang.String)
public final void warn(java.lang.String s, java.lang.Throwable throwable)
s
- the messagethrowable
- the throwableDNotesMonitor.warn(java.lang.String, java.lang.Throwable)
public final void error(java.lang.String s)
s
- the messageDNotesMonitor.error(java.lang.String)
public final void error(java.lang.String s, java.lang.Throwable throwable)
s
- the messagethrowable
- the throwableDNotesMonitor.error(java.lang.String, java.lang.Throwable)
public final void fatalError(java.lang.String s)
s
- the messageDNotesMonitor.fatalError(java.lang.String)
public final void fatalError(java.lang.String s, java.lang.Throwable throwable)
s
- the messagethrowable
- the throwableDNotesMonitor.fatalError(java.lang.String, java.lang.Throwable)
protected abstract void monitor(java.lang.String message)
message
- a message to monitorprotected abstract void monitor(java.lang.Throwable throwable)
throwable
- a throwable to monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |