Purpose: A tool used to provide performance monitoring information in a server environment.
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | |
| protected long | |
| protected long | |
| protected Map | |
| protected Map | |
| protected int | |
| protected transient AbstractSession | |
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public PerformanceMonitor | |
| public void | |
| public void | endOperationProfile(String operationName)
Implements org. |
| public void | endOperationProfile(String operationName, DatabaseQuery query, int weight)
Implements org. |
| public long | |
| protected Map | |
| protected Map | |
| public Object | |
| public Map | |
| public int | getProfileWeight()
Implements org. |
| public AbstractSession | |
| public void | initialize()
Implements org. |
| public void | occurred(String operationName, AbstractSession session)
Implements org. |
| public void | occurred(String operationName, DatabaseQuery query, AbstractSession session)
Implements org. |
| public Object | profileExecutionOfQuery(DatabaseQuery query, DataRecord row, AbstractSession session)
Implements org. |
| public void | setDumpTime(long dumpTime)
Set the number of milliseconds after which the monitor results should be logged. |
| public void | setProfileWeight(int profileWeight)
Implements org. |
| public void | setSession(Session session)
Implements org. |
| public void | startOperationProfile(String operationName)
Implements org. |
| public void | startOperationProfile(String operationName, DatabaseQuery query, int weight)
Implements org. |
| public void | update(String operationName, Object value)
Implements org. |
| COUNTER | back to summary |
|---|---|
| protected static final String COUNTER | |
| dumpTime | back to summary |
|---|---|
| protected long dumpTime | |
| lastDumpTime | back to summary |
|---|---|
| protected long lastDumpTime | |
| operationStartTimesByThread | back to summary |
|---|---|
| protected Map<Integer, Map<String, Long>> operationStartTimesByThread | |
| operationTimings | back to summary |
|---|---|
| protected Map<String, Object> operationTimings | |
| profileWeight | back to summary |
|---|---|
| protected int profileWeight | |
| session | back to summary |
|---|---|
| protected transient AbstractSession session | |
| TIMER | back to summary |
|---|---|
| protected static final String TIMER | |
| PerformanceMonitor | back to summary |
|---|---|
| public PerformanceMonitor() PUBLIC: Create a new profiler. The profiler can be registered with a session to log performance information on queries. | |
| checkDumpTime | back to summary |
|---|---|
| public void checkDumpTime() Log the results after a set amount of time has passed. | |
| clone | back to summary |
|---|---|
| public PerformanceMonitor clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| dumpResults | back to summary |
|---|---|
| public void dumpResults() Log the results to the session's log (System.out). | |
| endOperationProfile | back to summary |
|---|---|
| public void endOperationProfile(String operationName) Implements org. INTERNAL: End the operation timing.
| |
| endOperationProfile | back to summary |
|---|---|
| public void endOperationProfile(String operationName, DatabaseQuery query, int weight) Implements org. INTERNAL: End the operation timing.
| |
| getDumpTime | back to summary |
|---|---|
| public long getDumpTime() Return the number of milliseconds after which the monitor results should be logged. | |
| getOperationStartTimes | back to summary |
|---|---|
| protected Map | |
| getOperationStartTimesByThread | back to summary |
|---|---|
| protected Map | |
| getOperationTime | back to summary |
|---|---|
| public Object getOperationTime(String operation) | |
| getOperationTimings | back to summary |
|---|---|
| public Map | |
| getProfileWeight | back to summary |
|---|---|
| public int getProfileWeight() Implements org. Return the level of profiling. One of ALL, HEAVY, NORMAL, NONE.
| |
| getSession | back to summary |
|---|---|
| public AbstractSession getSession() | |
| initialize | back to summary |
|---|---|
| public void initialize() Implements org. Doc from org. INTERNAL: Initialize EclipseLink noun tree(DMS)
| |
| occurred | back to summary |
|---|---|
| public void occurred(String operationName, AbstractSession session) Implements org. Doc from org. INTERNAL: Increase DMS Event sensor occurrence.(DMS)
| |
| occurred | back to summary |
|---|---|
| public void occurred(String operationName, DatabaseQuery query, AbstractSession session) Implements org. Doc from org. INTERNAL: Increase DMS Event sensor occurrence.(DMS)
| |
| profileExecutionOfQuery | back to summary |
|---|---|
| public Object profileExecutionOfQuery(DatabaseQuery query, DataRecord row, AbstractSession session) Implements org. INTERNAL: Monitoring is done on the endOperation only.
| |
| setDumpTime | back to summary |
|---|---|
| public void setDumpTime(long dumpTime) Set the number of milliseconds after which the monitor results should be logged. | |
| setProfileWeight | back to summary |
|---|---|
| public void setProfileWeight(int profileWeight) Implements org. Set the level of profiling. One of ALL, HEAVY, NORMAL, NONE. The higher the level, the more operations are profiled.
| |
| setSession | back to summary |
|---|---|
| public void setSession(Session session) Implements org. Doc from org. INTERNAL: Set the session.
| |
| startOperationProfile | back to summary |
|---|---|
| public void startOperationProfile(String operationName) Implements org. INTERNAL: Start the operation timing.
| |
| startOperationProfile | back to summary |
|---|---|
| public void startOperationProfile(String operationName, DatabaseQuery query, int weight) Implements org. INTERNAL: Start the operation timing.
| |
| update | back to summary |
|---|---|
| public void update(String operationName, Object value) Implements org. Doc from org. INTERNAL: Update the value of the State sensor.(DMS)
| |