|
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
de.intarsys.tools.monitor.Monitor
public abstract class Monitor
todo 1 nested traces todo 1 refactor "sample" changes in TimeMonitor todo 1 nicht matchende samples unterstützen
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Monitor()
|
|
Monitor(String name)
Create a Monitor. |
|
| Method Summary | |
|---|---|
void |
configure(Element 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()
|
| Methods inherited from class de.intarsys.tools.monitor.AbstractMonitor |
|---|
attach, detach, getCollectAll, getCurrentTrace, getDefaultLevel, getLevel, getLogCycle, getLogger, getName, getTraces, setCollectAll, setDefaultLevel, setLevel, setLogCycle, setLogger, setName, start, stop |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public Monitor()
public Monitor(String name)
name - The monitors name| Method Detail |
|---|
public void configure(Element element)
throws ElementConfigurationException
configure in interface IElementConfigurableconfigure in class AbstractMonitorElementConfigurationExceptionpublic int getActive()
public Map getData()
IMonitor
public Map getFormattedData()
IMonitorgetData.
getData.public boolean isRelative()
public void reset()
reset in interface IMonitorreset in class AbstractMonitorpublic void setRelative(boolean relative)
public String toString()
toString in class Objectpublic String toTableString()
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||