|
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.Counter
public class Counter
This class is a wrapper of DMS Event sensor.
Field Summary | |
---|---|
static Counter |
DUMMY_COUNTER
A dummy Counter object that does nothing. |
Fields inherited from class oracle.adf.share.logging.internal.perf.ADFPerfSensor |
---|
mEnableDms, mEnablePerfLog, mIndex, mLevel, mSensorFullName, sIdxLogger, sLogger |
Constructor Summary | |
---|---|
protected |
Counter()
creates an empty Counter object. |
Method Summary | |
---|---|
static Counter |
createCounter(java.util.logging.Level level,
java.lang.String groupName,
java.lang.String name,
java.lang.String desc)
Create a Counter object identified by the sensorGroupName and the sensorName. |
static Counter |
createCounter(java.util.logging.Level level,
java.lang.String groupName,
java.lang.String name,
java.lang.String type,
java.lang.String desc)
Create a Counter object identified by the sensorGroupName and the sensorName. |
long |
getValue()
Get counter current value |
void |
increase()
Increase the counter to indicate an event occurred. |
void |
reset()
Clean up the counter value |
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 Counter DUMMY_COUNTER
Constructor Detail |
---|
protected Counter()
Method Detail |
---|
public void increase()
public long getValue()
public void reset()
reset
in class ADFPerfSensor
public static Counter createCounter(java.util.logging.Level level, java.lang.String groupName, java.lang.String name, java.lang.String desc)
Developers should then call Counter's increase(), reset() methods to track the counter object.
Internally, this method creates a DMS Event sensor.
When running inside the IDE, this methods returns DUMMY_COUNTER.
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 Counter typename
- the counter name.desc
- the description for this Counter.
public static Counter createCounter(java.util.logging.Level level, java.lang.String groupName, java.lang.String name, java.lang.String type, java.lang.String desc)
Developers should then call Counter's increase(), reset() methods to track the counter object.
Internally, this method creates a DMS Event sensor.
When running inside the IDE, this methods returns DUMMY_COUNTER.
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 counter name.type
- the Counter type which collects all sensors
with same type and display them together in a table
in AggreSpydesc
- the description for this Counter.
|
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 |