public class StateTrackerImpl extends StateTracker
DOUBLE, DUMMY_STATE_TRACKER, INTEGER, LONG, OBJECT
LAZY_NOUN_TYPE, mEnableDms, mEnablePerfLog, mIndex, mLevel, mSensorFullName, sIdxLogger, sLogger
Modifier and Type | Method and Description |
---|---|
static StateTracker |
createDMSStateTracker(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,
oracle.dms.instrument.SegregationType sgType) |
void |
destroy()
destroy up the metrics value
|
protected java.lang.Object |
getClonedValue()
access DMS state tracker current value object.
|
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.
|
createStateTracker, createStateTracker, createStateTracker
isActive, log, toString
public static StateTracker createDMSStateTracker(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, oracle.dms.instrument.SegregationType sgType)
public void increment(double increasedAmount)
StateTracker
increment
in class StateTracker
increasedAmount
- the new value to add to the current value of the
State.public void increment(int increasedAmount)
StateTracker
increment
in class StateTracker
increasedAmount
- the new value to add to the current value of the
State.public void increment(long increasedAmount)
StateTracker
increment
in class StateTracker
increasedAmount
- the new value to add to the current value of the
State.public void update(double newValue)
StateTracker
update
in class StateTracker
newValue
- the new value for the State.public void update(int newValue)
StateTracker
update
in class StateTracker
newValue
- the new value for the State.public void update(long newValue)
StateTracker
update
in class StateTracker
newValue
- the new value for the State.public void update(java.lang.Object newValue)
StateTracker
update
in class StateTracker
newValue
- the new value for the State.public void reset()
ADFPerfSensor
reset
in class ADFPerfSensor
public void destroy()
ADFPerfSensor
destroy
in class ADFPerfSensor
protected java.lang.Object getClonedValue()
StateTracker
getClonedValue
in class StateTracker