|
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.NullMonitor
public class NullMonitor
A monitor doing nothing...
| Constructor Summary | |
|---|---|
NullMonitor(String name)
Create a NullMonitor |
|
| Method Summary | |
|---|---|
ITrace |
attach()
Attach this IMonitor to the current Thread. |
void |
detach()
Detach this IMonitor from the current Thread. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullMonitor(String name)
name - monitor name| Method Detail |
|---|
public 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 IMonitorpublic void detach()
IMonitorIMonitor from the current Thread. This call
terminates the current ITrace instance.
detach in interface 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()
IMonitor
getData in interface IMonitorpublic long getDifference()
public Map getFormattedData()
IMonitorgetData.
getFormattedData in interface IMonitorgetData.public String getFormattedStart()
public String getFormattedStop()
public Logger getLogger()
IMonitorLogger instance.
getLogger in interface IMonitorLogger instance.public String getName()
IMonitor
getName in interface IMonitorpublic ISample getSample(String description)
public 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()).
getTraces in interface IMonitorITrace instances.public boolean isActive()
public void reset()
IMonitor
reset in interface IMonitorpublic ISample sample(String description)
public void setCollectAll(int count)
public void setCollectExtremes(int count)
public void tag(String key,
Object tag)
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||