Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.6.0)

E10686-07

oracle.adf.share.logging.internal.perf
Class ADFPerfSensor

java.lang.Object
  extended by oracle.adf.share.logging.internal.perf.ADFPerfSensor
Direct Known Subclasses:
Counter, StateTracker, Timer

public class ADFPerfSensor
extends java.lang.Object

Base class for all ADF Performance sensors: Timer, Counter, stateTracker


Field Summary
protected  boolean mEnableDms
           
protected  boolean mEnablePerfLog
           
protected  int mIndex
           
protected  java.util.logging.Level mLevel
           
protected  java.lang.String mSensorFullName
           
protected static java.util.logging.Logger sIdxLogger
           
protected static java.util.logging.Logger sLogger
           
 
Constructor Summary
protected ADFPerfSensor()
          creates an empty ADFPerfSensor.
  ADFPerfSensor(java.util.logging.Level level, java.lang.String sensorFullName)
          Constructor
 
Method Summary
 boolean isActive()
          Check if the sensor is active
protected  void log(long timeStamp, java.lang.String value, java.lang.String ecid)
          Send sensor's metrics to performance logs.
 void reset()
          Clean up the metrics value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mSensorFullName

protected java.lang.String mSensorFullName

mLevel

protected java.util.logging.Level mLevel

mIndex

protected int mIndex

mEnablePerfLog

protected boolean mEnablePerfLog

mEnableDms

protected boolean mEnableDms

sLogger

protected static java.util.logging.Logger sLogger

sIdxLogger

protected static java.util.logging.Logger sIdxLogger
Constructor Detail

ADFPerfSensor

public ADFPerfSensor(java.util.logging.Level level,
                     java.lang.String sensorFullName)
Constructor

Parameters:
level - the sensor level
sensorFullName - the sensor full name

ADFPerfSensor

protected ADFPerfSensor()
creates an empty ADFPerfSensor.

Method Detail

log

protected void log(long timeStamp,
                   java.lang.String value,
                   java.lang.String ecid)
Send sensor's metrics to performance logs.

Parameters:
timeStamp - time stamp for the sensor. It is start time for timer
value - sensor value.

Timer - elapsed time

Counter - count

StateTracker - state

ecid - the ecid of the sensor

isActive

public boolean isActive()
Check if the sensor is active

Returns:
true - yes, false - no

reset

public void reset()
Clean up the metrics value


Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.6.0)

E10686-07

Copyright © 1997, 2011, Oracle. All rights reserved.