|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 monitorMethod Detail |
---|
public final void setLevel(int theLevel)
See LEVELS
for allowed values.
DNotesMonitor.DEBUG
theLevel
- the new levelpublic final boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isFatalErrorEnabled()
public final boolean isErrorEnabled()
isErrorEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isErrorEnabled()
public final boolean isWarnEnabled()
isWarnEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isWarnEnabled()
public final boolean isInfoEnabled()
isInfoEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isInfoEnabled()
public final boolean isDebugEnabled()
isDebugEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.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 |