|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.portal.provider.v1.http.PerformanceLogger
This class is used to collect and output performance statistics for a show request.
| Field Summary | |
static int |
VALIDATION_CACHE_HIT
|
static int |
VALIDATION_CACHE_MISS_NEW
|
static int |
VALIDATION_CACHE_MISS_STALE
|
| Constructor Summary | |
PerformanceLogger()
|
|
| Method Summary | |
void |
finishProcessing()
Stop the timer once an incoming request has been processed. |
void |
finishReadCustomization()
Stop the timer once a portlet customisation object has been read. |
void |
finishRenderFooter()
Stop the timer once a portlet footer has been rendered. |
void |
finishRenderHeader()
Stop the timer once a portlet header has been rendered. |
void |
finishRequest()
Stop request timer. |
void |
finishWriteCustomization()
Stop the timer once a portlet customisation object has been written to. |
void |
setAction(int action)
Set the request action |
void |
setCacheLevel(int level)
Set the level at which the portlet uses expiry or validation caching. |
void |
setExpiryCacheTime(int minutes)
Set the time in minutes that a portlet is valid for. |
void |
setPortletId(long id)
Sets the portlet id for a show request. |
void |
setPortletInstanceName(java.lang.String name)
Sets the portlet instance name for a show request. |
void |
setPortletName(java.lang.String name)
Sets the portlet name for a show request. |
void |
setProviderId(long id)
Sets the provider id for a show request. |
void |
setRequestId(java.lang.String id)
Sets the request id for show requests. |
void |
setUser(java.lang.String user)
Sets the user name for a show request. |
void |
setValidationCacheHitStatus(int status)
For validation caching, set the hit status for the portlet. |
void |
setValidationCacheRequestKey(java.lang.String key)
Sets the cache version used in the incoming request for validation caching. |
void |
setValidationCacheResponseKey(java.lang.String key)
Sets the cache version in the response for validation caching. |
void |
startProcessing()
Start a timer to measure the time taken to process an incoming design time or show request. |
void |
startReadCustomization()
Start a timer to measure the time taken to access a portlet customisation object. |
void |
startRenderFooter()
Start a timer to measure the time taken to render a portlet footer. |
void |
startRenderHeader()
Start a timer to measure the time taken to render a portlet header. |
void |
startRequest()
Start the overall request timer. |
void |
startWriteCustomization()
Start a timer to measure the time taken to write information to a portlet customosation object. |
void |
writeLog(ProviderLog logger)
Writes the performance information to a ProviderLog
instance. |
void |
writeResponse(javax.servlet.http.HttpServletResponse response)
Appends the information to the portlet content so that it may be seen by the user. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int VALIDATION_CACHE_MISS_STALE
public static final int VALIDATION_CACHE_MISS_NEW
public static final int VALIDATION_CACHE_HIT
| Constructor Detail |
public PerformanceLogger()
| Method Detail |
public void setAction(int action)
action - request action type, e.g, show portlet, register providerpublic void startRequest()
public void finishRequest()
public void startProcessing()
public void finishProcessing()
public void startRenderHeader()
public void finishRenderHeader()
public void startRenderFooter()
public void finishRenderFooter()
public void startReadCustomization()
public void finishReadCustomization()
public void startWriteCustomization()
public void finishWriteCustomization()
public void setCacheLevel(int level)
level - the caching level.public void setExpiryCacheTime(int minutes)
minutes - expiry time in minutespublic void setValidationCacheHitStatus(int status)
status - the validation cache hit statuspublic void setValidationCacheRequestKey(java.lang.String key)
key - the cache versionpublic void setValidationCacheResponseKey(java.lang.String key)
key - the cache versionpublic void setRequestId(java.lang.String id)
id - the request idpublic void setPortletName(java.lang.String name)
name - the portlet namepublic void setPortletInstanceName(java.lang.String name)
name - the portlet instance namepublic void setPortletId(long id)
id - the portlet idpublic void setProviderId(long id)
id - the provider idpublic void setUser(java.lang.String user)
id - the user namepublic void writeLog(ProviderLog logger)
ProviderLog
instance.logger - the object to be used for recording the info
public void writeResponse(javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
response - the response object for the portlet content
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||