|
Oracle Application Server 10g DMS API Reference 10g (9.0.4) B12020-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dms.instrument.Sensor | +--oracle.dms.instrument.PhaseEvent
A PhaseEvent
is used to measure important intervals, phases, or blocks of code. Programs call the start()
method when the beginning of the interval and the stop()
method at the end of the interval. DMS then exports measurements of the duration of the interval, the number of times the event occurred, the minimum and maximum phase duration, and the number of threads currently executing between the start()
and stop()
markers.
Field Summary |
Fields inherited from class oracle.dms.instrument.Sensor |
active, all, average, completed, count, exclTime, maxActive, maximum, minimum, sum, time, value |
Method Summary | |
static PhaseEvent |
create(Noun parent, java.lang.String name, java.lang.String desc) Creates a new PhaseEvent |
void |
deriveMetric(int metric) Instructs the PhaseEvent to derive additional metrics. |
long |
start() Signals the beginning of the Phase. |
void |
stop(long token) Signals the end of the Phase. |
Methods inherited from class oracle.dms.instrument.Sensor |
destroy, get, getDescription, getName, getValue, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static PhaseEvent create(Noun parent, java.lang.String name, java.lang.String desc)
parent
- the parent Nounname
- the name of the Eventdesc
- the description of the Eventpublic void deriveMetric(int metric)
deriveMetric
in class Sensor
metric
- bitmask of metric(s) to be derived.
Possible values are Sensor.minimum
, Sensor.maximum
, Sensor.completed
, Sensor.average
, Sensor.active
, Sensor.maxActive
and Sensor.all
(shorthand for all of the applicable derivations). The values can be bitwise-ORed together, or multiple calls to deriveMetric can be made.
public long start()
stop(long)
public void stop(long token)
token
- the token obtained at the start of the phase
|
Oracle Application Server 10g DMS API Reference 10g (9.0.4) B12020-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |