|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.TimerTask oracle.portal.provider.v2.monitor.PerfMonitor
public abstract class PerfMonitor
This class contains the methods and constants for provider code to log performance statistics and to track the progress of a request.
Field Summary | |
---|---|
static int |
CACHE_KEY_REQUEST
|
static int |
CACHE_KEY_RESPONSE
|
static int |
CACHE_LEVEL
|
static int |
CACHE_TYPE
|
static java.lang.String |
EXPIRES_MISS
|
static int |
EXPIRY_TIME
|
static int |
LAST_PROPERTY
|
static int |
LAST_TIMER
|
static int |
READ_CUSTOMIZATION_ACCR
|
static int |
RENDER_FOOTER_TIMER
|
static int |
RENDER_HEADER_TIMER
|
static boolean[] |
TIMER_TYPES
|
static java.lang.String |
VALIDATION_HIT
|
static java.lang.String |
VALIDATION_NEW
|
static java.lang.String |
VALIDATION_STALE
|
static int |
WRITE_CUSTOMIZATION_ACCR
|
Constructor Summary | |
---|---|
PerfMonitor()
|
Method Summary | |
---|---|
abstract void |
finishTimer(int timerId)
Stops a timer with a given id. |
abstract boolean |
hasTimeoutElapsed()
Used to find whether the execution time of the current request thread has exceeded the provider warning timeout. |
abstract void |
setProperty(int propertyId,
long value)
Sets a property with a given id to the value specified. |
abstract void |
setProperty(int propertyId,
java.lang.String value)
Sets a property with a given id to the value specified. |
abstract void |
startTimer(int timerId)
Starts a timer with a given id. |
Methods inherited from class java.util.TimerTask |
---|
cancel, run, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VALIDATION_HIT
public static final java.lang.String VALIDATION_STALE
public static final java.lang.String VALIDATION_NEW
public static final java.lang.String EXPIRES_MISS
public static final int RENDER_HEADER_TIMER
public static final int RENDER_FOOTER_TIMER
public static final int READ_CUSTOMIZATION_ACCR
public static final int WRITE_CUSTOMIZATION_ACCR
public static final int LAST_TIMER
public static boolean[] TIMER_TYPES
public static final int CACHE_TYPE
public static final int CACHE_LEVEL
public static final int EXPIRY_TIME
public static final int CACHE_KEY_REQUEST
public static final int CACHE_KEY_RESPONSE
public static final int LAST_PROPERTY
Constructor Detail |
---|
public PerfMonitor()
Method Detail |
---|
public abstract void startTimer(int timerId) throws java.lang.IllegalArgumentException, java.lang.IllegalArgumentException
timerId
- the id of the timer to be started
java.lang.IllegalArgumentException
- thrown if the timer id is invalid
java.lang.IllegalStateException
- thrown if the timer is running or has
been stoppedpublic abstract void finishTimer(int timerId) throws java.lang.IllegalArgumentException, java.lang.IllegalArgumentException
timerId
- the id of the timer to be stopped
java.lang.IllegalArgumentException
- thrown if the timer id is invalid
java.lang.IllegalStateException
- thrown if the timer has already been
stopped or has not been startedpublic abstract void setProperty(int propertyId, java.lang.String value) throws java.lang.IllegalArgumentException
propertyId
- the id of the property to be setvalue
- a String
value to which the property is set
java.lang.IllegalArgumentException
- thrown if the property id is invalidpublic abstract void setProperty(int propertyId, long value) throws java.lang.IllegalArgumentException
propertyId
- the id of the property to be setvalue
- a long
value to which the property is set
java.lang.IllegalArgumentException
- thrown if the property id is invalidpublic abstract boolean hasTimeoutElapsed()
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |