|
|||||||||
| 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 String |
Status_Cancel
|
static String |
Status_InternalError
|
static String |
Status_Refresh
|
static String |
Status_StoppedWaiting
|
static String |
Status_Success
|
static String |
Status_Timeout
|
static String |
Status_ValidationError
|
static String |
Type_Call
|
static String |
Type_Task
|
static String |
Type_User
|
static String |
Type_Work
|
| Constructor Summary | |
|---|---|
PerformanceState()
|
|
| Method Summary | |
|---|---|
static void |
addObserver(PerformanceStateCore.MetricObserver observer)
|
static void |
archiveLogFile()
|
static void |
clear()
Deprecated. Use ThreadDebugState.clear() |
static String |
fileHeaderString()
|
static String |
getNodeName()
|
static PerformanceState.Stats |
getThisThreadHashtable()
If you need direct access to the hashtable, you can get it this way. |
static boolean |
isLoggingEnabled()
|
static PerformanceStateCore[] |
logMetrics()
Returns an array of the PerformanceStateCore objects to be
used in logging. |
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 |
setNodeName(String nodeName)
Must be initialized by server prior to first log event |
static void |
setPerformanceCheck(PerformanceCheck check)
|
static void |
setStatus(String status)
|
static boolean |
threadStateEnabled()
|
String |
toString()
|
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 final String Type_User
public static final String Type_Task
public static final String Type_Work
public static final String Type_Call
public static final String Status_Success
public static final String Status_InternalError
public static final String Status_ValidationError
public static final String Status_Timeout
public static final String Status_StoppedWaiting
public static final String Status_Refresh
public static final String Status_Cancel
| Constructor Detail |
|---|
public PerformanceState()
| Method Detail |
|---|
public static void registrationComplete()
public static final boolean threadStateEnabled()
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 setPerformanceCheck(PerformanceCheck check)
public static void addObserver(PerformanceStateCore.MetricObserver observer)
public String toString()
toString in class Objectpublic static PerformanceState.Stats getThisThreadHashtable()
public static void restoreContinuedHashtable(PerformanceState.Stats stats)
public static void setStatus(String status)
public static void setNodeName(String nodeName)
public static String getNodeName()
public static PerformanceStateCore[] logMetrics()
PerformanceStateCore objects to be
used in logging.
public static String fileHeaderString()
public static void logToFile(PerformanceState.Stats stats)
public static void archiveLogFile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||