public abstract class Monitor extends AbstractMonitor
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_AVG |
static String |
ATTR_COUNT |
static String |
ATTR_EFFECTIVE |
static String |
ATTR_FIRST |
static String |
ATTR_LAST |
static String |
ATTR_MAX |
static String |
ATTR_MAXACTIVE |
static String |
ATTR_MIN |
static String |
ATTR_NAME
The collected attributes
|
static String |
ATTR_TOTAL |
| Constructor and Description |
|---|
Monitor() |
Monitor(String name)
Create a Monitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(IElement element) |
int |
getActive() |
Map |
getData()
A map containing key/value pairs representing all statistical
informations derived from the samples.
|
Map |
getFormattedData()
A map containing key/value pairs with string representations for the
statistical information from
getData. |
boolean |
isRelative()
DOCUMENT ME!
|
void |
reset()
Reset the relevant internal state of the monitor to reuse it.
|
void |
setRelative(boolean relative) |
String |
toString() |
String |
toTableString() |
attach, detach, getCollectAll, getCurrentTrace, getDefaultLevel, getLevel, getLogCycle, getLogger, getName, getTraces, setCollectAll, setDefaultLevel, setLevel, setLogCycle, setLogger, setName, start, stoppublic static final String ATTR_NAME
public static final String ATTR_MAX
public static final String ATTR_MIN
public static final String ATTR_COUNT
public static final String ATTR_TOTAL
public static final String ATTR_EFFECTIVE
public static final String ATTR_AVG
public static final String ATTR_FIRST
public static final String ATTR_LAST
public static final String ATTR_MAXACTIVE
public Monitor()
public Monitor(String name)
name - The monitors namepublic void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableconfigure in class AbstractMonitorConfigurationExceptionpublic int getActive()
public Map getData()
IMonitorpublic Map getFormattedData()
IMonitorgetData.getData.public boolean isRelative()
public void reset()
reset in interface IMonitorreset in class AbstractMonitorpublic void setRelative(boolean relative)
public String toTableString()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.