|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 probe
protected DefaultProbe(String name,
Time tim)
| Method Detail |
|---|
public long getElapsed()
getElapsed in interface Probepublic void start()
start in interface Probepublic void stop()
stop in interface Probepublic boolean isEnabled()
isEnabled in interface Probepublic void enable()
enable in interface Probepublic void disable()
disable in interface Probepublic boolean isRunning()
isRunning in interface Probepublic String getName()
Probe
getName in interface Probepublic 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 | ||||||||