public abstract class AbstractMonitor extends Object implements IMonitor, IElementConfigurable
| Constructor and Description |
|---|
AbstractMonitor() |
AbstractMonitor(String name) |
| Modifier and Type | Method and Description |
|---|---|
ITrace |
attach()
|
void |
configure(IElement element) |
void |
detach()
|
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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getFormattedDatapublic AbstractMonitor()
public AbstractMonitor(String name)
public static Level getDefaultLevel()
public static void setDefaultLevel(Level defaultLevel)
public void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableConfigurationExceptionpublic final void detach()
IMonitorpublic int getCollectAll()
public ITrace getCurrentTrace()
getCurrentTrace in interface IMonitorpublic Level getLevel()
public int getLogCycle()
public Logger getLogger()
IMonitorLogger instance.public String getName()
IMonitorpublic List getTraces()
IMonitorITrace instances.
This may be null if no traces are stored (see setCollectAll()).
public void reset()
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()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.