|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.bea.domingo.monitor.AbstractMonitor
public abstract class AbstractMonitor
Abstract base class for implementations of the Monitor interface.
This class handles the level of monitors.
| Field Summary | |
|---|---|
static java.util.Map |
LEVELS
Map of all string representing valid levels to their corresponding integer value. |
| Fields inherited from interface de.bea.domingo.DNotesMonitor |
|---|
DEBUG, DEFAULT_LEVEL, ERROR, FATAL, INFO, NONE, WARN |
| Constructor Summary | |
|---|---|
AbstractMonitor()
Constructor. |
|
AbstractMonitor(int theLevel)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
isDebugEnabled()
Checks if debug output is enabled or not. |
boolean |
isErrorEnabled()
Checks if error output is enabled or not. |
boolean |
isFatalErrorEnabled()
Checks if fatal error output is enabled or not. |
boolean |
isInfoEnabled()
Checks if info output is enabled or not. |
boolean |
isNoMesssages()
Checks if the monitor level is set to NONE. |
boolean |
isWarnEnabled()
Checks if warn output is enabled or not. |
void |
setLevel(int theLevel)
Sets the monitoring level of the monitor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.bea.domingo.DNotesMonitor |
|---|
debug, debug, error, error, fatalError, fatalError, info, info, warn, warn |
| Field Detail |
|---|
public static final java.util.Map LEVELS
The standard values are represented by the following strings (not case sensitive):
",
DNotesMonitor.DEBUG"",
DNotesMonitor.INFO"",
DNotesMonitor.WARN"",
DNotesMonitor.ERROR"" and
DNotesMonitor.FATAL"".DNotesMonitor.NONE"
For convenience, also the following values are synonyms:
"TRACE" -> DEBUG "INFORMATION" -> INFO "WARNING" -> WARN "FATALERROR" -> FATAL "NOTHING" -> NONE "DEFAULT" -> WARN
| Constructor Detail |
|---|
public AbstractMonitor()
public AbstractMonitor(int theLevel)
theLevel - the level of the new monitor| Method Detail |
|---|
public final void setLevel(int theLevel)
See LEVELS for allowed values.
DNotesMonitor.DEBUG
theLevel - the new levelpublic final boolean isFatalErrorEnabled()
isFatalErrorEnabled in interface DNotesMonitortrueif enabled, else falseDNotesMonitor.isFatalErrorEnabled()public final boolean isErrorEnabled()
isErrorEnabled in interface DNotesMonitortrueif enabled, else falseDNotesMonitor.isErrorEnabled()public final boolean isWarnEnabled()
isWarnEnabled in interface DNotesMonitortrueif enabled, else falseDNotesMonitor.isWarnEnabled()public final boolean isInfoEnabled()
isInfoEnabled in interface DNotesMonitortrueif enabled, else falseDNotesMonitor.isInfoEnabled()public final boolean isDebugEnabled()
isDebugEnabled in interface DNotesMonitortrueif enabled, else falseDNotesMonitor.isDebugEnabled()public final boolean isNoMesssages()
NONE.
true if the monitor level is set to NONE, else false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||