|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.PerformanceState
public class PerformanceState
This class maintains performance state for the current thread. It can be considered a specialized extension to ThreadDebugState (and, in fact, stores itself there).
Nested Class Summary | |
---|---|
static class |
PerformanceState.Stats
|
Field Summary | |
---|---|
static PerformanceStateTimedCounter |
DispatchTimer
|
static java.lang.String |
ParameterAllowRecordingSuspensions
|
static java.lang.String |
ParameterEnableLoadTestingMode
|
static PerformanceStateTimedCounter |
Search
This perflog metric is for "user searches", both those done by the user in an explicit "search UI", and also searches done on the user's behalf in portlets and other contexts. |
static PerformanceStateCounter |
SearchRows
This perflog metric is for "user searches", and provides additional information for the "Search" metric. |
static PerformanceStateTimedCounter |
SearchUpdate
This perflog metric is for updates to the searchable source data for search items. |
static PerformanceStateCounter |
SearchUpdateBytes
This perflog metric is for updates to the searchable source data for search items, and provides additional information for the "SearchUpdate" metric. |
static java.lang.String |
Status_Cancel
|
static java.lang.String |
Status_InternalError
|
static java.lang.String |
Status_Refresh
|
static java.lang.String |
Status_StoppedWaiting
|
static java.lang.String |
Status_Success
|
static java.lang.String |
Status_Timeout
|
static java.lang.String |
Status_ValidationError
|
static PerformanceStateCPUTimedCounter |
ThreadCPUTimer
|
static java.lang.String |
Type_Call
|
static java.lang.String |
Type_Task
|
static java.lang.String |
Type_User
|
static java.lang.String |
Type_Work
|
Constructor Summary | |
---|---|
PerformanceState()
|
Method Summary | |
---|---|
static void |
addObserver(PerformanceStateCore.MetricObserver observer)
|
static void |
archiveLogFile(Parameters params)
|
static void |
clear()
Deprecated. Use ThreadDebugState.clear() |
static java.lang.String |
fileHeaderString(java.lang.String prefix)
|
static int |
getCommunity()
|
static java.lang.String |
getNodeName()
|
static PerformanceState.Stats |
getThisThreadHashtable()
If you need direct access to the hashtable, you can get it this way. |
static boolean |
isLoggingEnabled()
|
static boolean |
isQualTest()
Returns true if the current thread is running a qual test. |
static boolean |
isRecordingSuspended()
|
static boolean |
isSuspendingAllowed()
Performance recording should not be suspended if this method returns true. |
static PerformanceStateCore[] |
logMetrics()
Returns an array of the PerformanceStateCore objects to be
used in logging. |
static void |
logPlanFile(java.lang.String query,
java.lang.String plan)
|
static void |
logToFile(PerformanceState.Stats stats)
|
static void |
registrationComplete()
Must be called by app after all metrics have been registered. |
static void |
restoreContinuedHashtable(PerformanceState.Stats stats)
|
static void |
restoreDefaultErrorRuntimeMillis()
|
static void |
setAllowRecordingSuspensions(boolean flag)
|
static void |
setCommunity(int communityId)
Must be initialized prior to first log event |
static void |
setNodeName(java.lang.String nodeName)
Must be initialized by server prior to first log event |
static void |
setPerformanceCheck(PerformanceCheck check)
|
static void |
setPerfTestMode(boolean flag)
perfTestMode is a flag to indicate that the currently running instance is running performance related tests. |
static void |
setStatus(java.lang.String status)
|
static boolean |
threadStateEnabled()
|
java.lang.String |
toString()
|
static void |
updateErrorRuntimeMillis(long duration)
|
static void |
watchPerformance(PerformanceCheck checker)
Set a thread to have its execution time monitored. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static PerformanceStateTimedCounter DispatchTimer
public static PerformanceStateTimedCounter Search
public static PerformanceStateCounter SearchRows
public static PerformanceStateTimedCounter SearchUpdate
public static PerformanceStateCounter SearchUpdateBytes
public static PerformanceStateCPUTimedCounter ThreadCPUTimer
public static final java.lang.String ParameterAllowRecordingSuspensions
public static final java.lang.String ParameterEnableLoadTestingMode
public static final java.lang.String Type_User
public static final java.lang.String Type_Task
public static final java.lang.String Type_Work
public static final java.lang.String Type_Call
public static final java.lang.String Status_Success
public static final java.lang.String Status_InternalError
public static final java.lang.String Status_ValidationError
public static final java.lang.String Status_Timeout
public static final java.lang.String Status_StoppedWaiting
public static final java.lang.String Status_Refresh
public static final java.lang.String Status_Cancel
Constructor Detail |
---|
public PerformanceState()
Method Detail |
---|
public static void registrationComplete()
public static final boolean threadStateEnabled()
public static final boolean isQualTest()
public static boolean isLoggingEnabled()
public static void clear()
public static void watchPerformance(PerformanceCheck checker)
errorDuration
has passed, then the thread debug state will be written to the error log.
checker
- -- the performance check object. It's warningTimeMillis determines
the logging periodpublic static void restoreDefaultErrorRuntimeMillis()
public static void updateErrorRuntimeMillis(long duration)
public static void setPerformanceCheck(PerformanceCheck check)
public static void addObserver(PerformanceStateCore.MetricObserver observer)
public java.lang.String toString()
toString
in class java.lang.Object
public static PerformanceState.Stats getThisThreadHashtable()
public static void restoreContinuedHashtable(PerformanceState.Stats stats)
public static void setStatus(java.lang.String status)
public static boolean isRecordingSuspended()
public static boolean isSuspendingAllowed()
public static void setAllowRecordingSuspensions(boolean flag)
public static void setPerfTestMode(boolean flag)
flag
- public static void setNodeName(java.lang.String nodeName)
public static java.lang.String getNodeName()
public static void setCommunity(int communityId)
public static int getCommunity()
public static PerformanceStateCore[] logMetrics()
PerformanceStateCore
objects to be
used in logging.
public static java.lang.String fileHeaderString(java.lang.String prefix)
public static void logToFile(PerformanceState.Stats stats)
public static void logPlanFile(java.lang.String query, java.lang.String plan)
public static void archiveLogFile(Parameters params)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |