|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.6.0) E10686-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.share.logging.internal.perf.ADFPerfSensor oracle.adf.share.perf.StateTracker
public class StateTracker
This class is a wrapper of DMS State sensor. It encapsulates sensor group name(Noun) and sensor name.
Field Summary | |
---|---|
static byte |
DOUBLE
|
static StateTracker |
DUMMY_STATE_TRACKER
An empty state tracker. |
static byte |
INTEGER
|
static byte |
LONG
|
static byte |
OBJECT
|
Fields inherited from class oracle.adf.share.logging.internal.perf.ADFPerfSensor |
---|
mEnableDms, mEnablePerfLog, mIndex, mLevel, mSensorFullName, sIdxLogger, sLogger |
Method Summary | |
---|---|
static StateTracker |
createStateTracker(java.util.logging.Level level,
java.lang.String groupName,
java.lang.String name,
byte valueType,
java.lang.String unit,
java.lang.String desc)
Create a Counter object identified by the groupName and the name. |
static StateTracker |
createStateTracker(java.util.logging.Level level,
java.lang.String groupName,
java.lang.String name,
java.lang.String type,
byte valueType,
java.lang.String unit,
java.lang.String desc)
Create a Counter object identified by the groupName and the name. |
void |
increment(double increasedAmount)
Add increasedAmount to the value of the state. |
void |
increment(int increasedAmount)
Add increasedAmount to the value of the state. |
void |
increment(long increasedAmount)
Add increasedAmount to the value of the state. |
void |
reset()
Clean up the metrics value |
void |
update(double newValue)
Update the value of the State. |
void |
update(int newValue)
Update the value of the State. |
void |
update(long newValue)
Update the value of the State. |
void |
update(java.lang.Object newValue)
Update the value of the State. |
Methods inherited from class oracle.adf.share.logging.internal.perf.ADFPerfSensor |
---|
isActive, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte DOUBLE
public static final byte INTEGER
public static final byte LONG
public static final byte OBJECT
public static final StateTracker DUMMY_STATE_TRACKER
Method Detail |
---|
public void increment(double increasedAmount)
increasedAmount
- the new value to add to the current value of the
State.public void increment(int increasedAmount)
increasedAmount
- the new value to add to the current value of the
State.public void increment(long increasedAmount)
increasedAmount
- the new value to add to the current value of the
State.public void update(double newValue)
newValue
- the new value for the State.public void update(int newValue)
newValue
- the new value for the State.public void update(long newValue)
newValue
- the new value for the State.public void update(java.lang.Object newValue)
newValue
- the new value for the State.public static StateTracker createStateTracker(java.util.logging.Level level, java.lang.String groupName, java.lang.String name, byte valueType, java.lang.String unit, java.lang.String desc)
Developers should then call Counter's increment(), update() methods to track the state object.
Internally, this method creates a DMS Event sensor.
When called inside the IDE, always returns DUMMY_STATE_TRACKER.
level
- one of the message level identifiers, e.g. SEVEREgroupName
- the group name, which has the format of
/oracle/component_id/module/subModule/...
The component_id is also used as StateTracker typename
- the stateTracker name.valueType
- the type of data to be maintained in this State,
which must be one of DOUBLE, LONG, INTEGER, or OBJECT.unit
- the label for the units of the value.desc
- the description for this StateTracker.
public static StateTracker createStateTracker(java.util.logging.Level level, java.lang.String groupName, java.lang.String name, java.lang.String type, byte valueType, java.lang.String unit, java.lang.String desc)
Developers should then call Counter's increment(), update() methods to track the state object.
Internally, this method creates a DMS Event sensor.
When called inside the IDE, always returns DUMMY_STATE_TRACKER.
level
- one of the message level identifiers, e.g. SEVEREgroupName
- the group name, which has the format of
/oracle/component_id/module/subModule/...name
- the stateTracker name.type
- the stateTracker type which collects all sensors
with same type and display them together in a table
in AggreSpyvalueType
- the type of data to be maintained in this State,
which must be one of DOUBLE, LONG, INTEGER, or OBJECT.unit
- the label for the units of the value.desc
- the description for this StateTracker.
public void reset()
ADFPerfSensor
reset
in class ADFPerfSensor
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.6.0) E10686-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |