| Constructor and Description |
|---|
NullMonitor(String name)
Create a NullMonitor
|
| Modifier and Type | Method and Description |
|---|---|
ITrace |
attach()
|
void |
detach()
|
int |
getActive() |
int |
getCollectAll() |
int |
getConcurrent() |
ITrace |
getCurrentTrace()
Return an
ITrace that is currently under construction. |
Map |
getData()
A map containing key/value pairs representing all statistical
informations derived from the samples.
|
long |
getDifference() |
Map |
getFormattedData()
A map containing key/value pairs with string representations for the
statistical information from
getData. |
String |
getFormattedStart() |
String |
getFormattedStop() |
Logger |
getLogger()
The associated
Logger instance. |
String |
getName()
The name of this monitor.
|
ISample |
getSample(String description) |
List |
getSamples() |
long |
getStart() |
long |
getStop() |
Map |
getTags() |
List |
getTraces()
A list of
ITrace instances. |
boolean |
isActive() |
void |
reset()
Reset all information in this monitor.
|
ISample |
sample(String description) |
void |
setCollectAll(int count) |
void |
setCollectExtremes(int count) |
void |
tag(String key,
Object tag) |
public NullMonitor(String name)
name - monitor namepublic void detach()
IMonitorpublic int getActive()
public int getCollectAll()
public int getConcurrent()
public ITrace getCurrentTrace()
IMonitorITrace that is currently under construction.getCurrentTrace in interface IMonitorITrace that is currently under construction.public Map getData()
IMonitorpublic long getDifference()
public Map getFormattedData()
IMonitorgetData.getFormattedData in interface IMonitorgetData.public String getFormattedStart()
public String getFormattedStop()
public Logger getLogger()
IMonitorLogger instance.public String getName()
IMonitorpublic List getSamples()
public long getStart()
public long getStop()
public Map getTags()
public List getTraces()
IMonitorITrace instances.
This may be null if no traces are stored (see setCollectAll()).
public boolean isActive()
public void reset()
IMonitorpublic void setCollectAll(int count)
public void setCollectExtremes(int count)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.