|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jperfprobe.DefaultProbe
public class DefaultProbe
DefaultProbe implements a Probe. It is possible to start and stop a probe The probe is identified by a name. The probe uses nano seconds for measuring time.
Constructor Summary | |
---|---|
|
DefaultProbe(String name)
Constructor of probe |
protected |
DefaultProbe(String name,
Time tim)
|
Method Summary | |
---|---|
void |
disable()
Disable the probe. |
void |
enable()
Enable the probe. |
long |
getElapsed()
Get elapsed time for this probe in nanos. |
String |
getName()
Get the name of the probe |
Time |
getTime()
|
boolean |
isEnabled()
Is the probe enabled. |
boolean |
isRunning()
Is the probe running (by start). |
void |
setTime(Time time)
|
void |
start()
Start the probe. |
void |
stop()
Stop the probe. |
String |
toString()
Get all info from probe to string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultProbe(String name)
name
- name of probeprotected DefaultProbe(String name, Time tim)
Method Detail |
---|
public long getElapsed()
getElapsed
in interface Probe
public void start()
start
in interface Probe
public void stop()
stop
in interface Probe
public boolean isEnabled()
isEnabled
in interface Probe
public void enable()
enable
in interface Probe
public void disable()
disable
in interface Probe
public boolean isRunning()
isRunning
in interface Probe
public String getName()
Probe
getName
in interface Probe
public Time getTime()
public void setTime(Time time)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |