Oracle Application Server DMS API Reference
10g Release 2 (10.1.2)

B14002-01


oracle.dms.instrument
Class Event

java.lang.Object
  extended byoracle.dms.instrument.Sensor
      extended byoracle.dms.instrument.Event


public class Event
extends Sensor

An Event Sensor is used to measure information about instantaneous, point events (events with negligible duration). Programs call the occurred() method each time the measured event occurs, and DMS computes a count value indicating the number of occurrences. An Event sensor contains a count metric.


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 Event create(Noun parent, java.lang.String name, java.lang.String desc)
Creates a new Event
void deriveMetric(int metric)
Derives additional metrics.
void occurred()
Signals to DMS that the Event occurred

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

create

public static Event create(Noun parent,
                           java.lang.String name,
                           java.lang.String desc)
Creates a new Event
Parameters:
parent - the parent Noun
name - the name of the Event
desc - the description of the Event
Returns:
the new Event or, if the Event already exists, then this method returns a reference to it.
Since:
Oracle iAS 1.0.2.2

occurred

public void occurred()
Signals to DMS that the Event occurred
Since:
Oracle iAS 1.0.2.2

deriveMetric

public void deriveMetric(int metric)
Derives additional metrics.
Overrides:
deriveMetric in class Sensor
Parameters:
metric - bitmask of metrics to be derived.

Currently, no derivations are supported

Since:
Oracle iAS 1.0.2.2

Oracle Application Server DMS API Reference
10g Release 2 (10.1.2)

B14002-01


Copyright © 2004 Oracle. All Rights Reserved.