|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.monitor.AbstractMonitor
public abstract class AbstractMonitor
An abstract superclass to ease implementation of IMonitor objects.
| Constructor Summary | |
|---|---|
AbstractMonitor()
|
|
AbstractMonitor(String name)
|
|
| Method Summary | |
|---|---|
ITrace |
attach()
Attach this IMonitor to the current Thread. |
void |
configure(Element element)
|
void |
detach()
Detach this IMonitor from the current Thread. |
int |
getCollectAll()
|
ITrace |
getCurrentTrace()
The currently active IMonitorTrace for the running thread. |
static Level |
getDefaultLevel()
|
Level |
getLevel()
DOCUMENT ME! |
int |
getLogCycle()
|
Logger |
getLogger()
The associated Logger instance. |
String |
getName()
The name of this monitor. |
List |
getTraces()
A list of ITrace instances. |
void |
reset()
Reset all information in this monitor. |
void |
setCollectAll(int count)
|
static void |
setDefaultLevel(Level defaultLevel)
|
void |
setLevel(Level traceLogLevel)
|
void |
setLogCycle(int pLogCycle)
|
void |
setLogger(Logger traceLog)
|
void |
setName(String name)
|
void |
start()
Deprecated. use attach |
void |
stop()
Deprecated. use detach |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.intarsys.tools.monitor.IMonitor |
|---|
getData, getFormattedData |
| Constructor Detail |
|---|
public AbstractMonitor()
public AbstractMonitor(String name)
| Method Detail |
|---|
public static Level getDefaultLevel()
public static void setDefaultLevel(Level defaultLevel)
public final ITrace attach()
IMonitorIMonitor to the current Thread.
Calling this method indicates the beginning of a measuring period
represented by a ITrace. This method must always be paired with a
call to "detach()".
attach in interface IMonitor
public void configure(Element element)
throws ElementConfigurationException
configure in interface IElementConfigurableElementConfigurationExceptionpublic final void detach()
IMonitorIMonitor from the current Thread. This call
terminates the current ITrace instance.
detach in interface IMonitorpublic int getCollectAll()
public ITrace getCurrentTrace()
getCurrentTrace in interface IMonitorpublic Level getLevel()
public int getLogCycle()
public Logger getLogger()
IMonitorLogger instance.
getLogger in interface IMonitorLogger instance.public String getName()
IMonitor
getName in interface IMonitorpublic List getTraces()
IMonitorITrace instances.
This may be null if no traces are stored (see setCollectAll()).
getTraces in interface IMonitorITrace instances.public void reset()
IMonitor
reset in interface IMonitorpublic void setCollectAll(int count)
public void setLevel(Level traceLogLevel)
public void setLogCycle(int pLogCycle)
public void setLogger(Logger traceLog)
public void setName(String name)
@Deprecated public void start()
@Deprecated public void stop()
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||