oracle.portal.provider.v2.monitor
Class PerfMonitor
java.lang.Object
|
+--java.util.TimerTask
|
+--oracle.portal.provider.v2.monitor.PerfMonitor
- All Implemented Interfaces:
- java.lang.Runnable
- public abstract class PerfMonitor
- extends java.util.TimerTask
This class contains the methods and constants for provider code to log
performance statistics and to track the progress of a request.
|
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 |
VALIDATION_HIT
public static final java.lang.String VALIDATION_HIT
VALIDATION_STALE
public static final java.lang.String VALIDATION_STALE
VALIDATION_NEW
public static final java.lang.String VALIDATION_NEW
EXPIRES_MISS
public static final java.lang.String EXPIRES_MISS
RENDER_HEADER_TIMER
public static final int RENDER_HEADER_TIMER
RENDER_FOOTER_TIMER
public static final int RENDER_FOOTER_TIMER
READ_CUSTOMIZATION_ACCR
public static final int READ_CUSTOMIZATION_ACCR
WRITE_CUSTOMIZATION_ACCR
public static final int WRITE_CUSTOMIZATION_ACCR
LAST_TIMER
public static final int LAST_TIMER
TIMER_TYPES
public static boolean[] TIMER_TYPES
CACHE_TYPE
public static final int CACHE_TYPE
CACHE_LEVEL
public static final int CACHE_LEVEL
EXPIRY_TIME
public static final int EXPIRY_TIME
CACHE_KEY_REQUEST
public static final int CACHE_KEY_REQUEST
CACHE_KEY_RESPONSE
public static final int CACHE_KEY_RESPONSE
LAST_PROPERTY
public static final int LAST_PROPERTY
PerfMonitor
public PerfMonitor()
startTimer
public abstract void startTimer(int timerId)
throws java.lang.IllegalArgumentException,
java.lang.IllegalArgumentException
- Starts a timer with a given id.
- Parameters:
timerId - the id of the timer to be started- Throws:
java.lang.IllegalArgumentException - thrown if the timer id is invalidjava.lang.IllegalStateException - thrown if the timer is running or has
been stopped
finishTimer
public abstract void finishTimer(int timerId)
throws java.lang.IllegalArgumentException,
java.lang.IllegalArgumentException
- Stops a timer with a given id.
- Parameters:
timerId - the id of the timer to be stopped- Throws:
java.lang.IllegalArgumentException - thrown if the timer id is invalidjava.lang.IllegalStateException - thrown if the timer has already been
stopped or has not been started
setProperty
public abstract void setProperty(int propertyId,
java.lang.String value)
throws java.lang.IllegalArgumentException
- Sets a property with a given id to the value specified.
- Parameters:
propertyId - the id of the property to be setvalue - a String value to which the property is set- Throws:
java.lang.IllegalArgumentException - thrown if the property id is invalid
setProperty
public abstract void setProperty(int propertyId,
long value)
throws java.lang.IllegalArgumentException
- Sets a property with a given id to the value specified.
- Parameters:
propertyId - the id of the property to be setvalue - a long value to which the property is set- Throws:
java.lang.IllegalArgumentException - thrown if the property id is invalid
hasTimeoutElapsed
public abstract boolean hasTimeoutElapsed()
- Used to find whether the execution time of the current request thread has
exceeded the provider warning timeout.
- Returns:
- a boolean indicating whether or not the timeout has elapsed.
Copyright (c) 2002, Oracle Corporation. All Rights Reserved.