Package org.eclipse.persistence.sessions
Class SessionProfilerAdapter
- java.lang.Object
-
- org.eclipse.persistence.sessions.SessionProfilerAdapter
-
- All Implemented Interfaces:
SessionProfiler
- Direct Known Subclasses:
PerformanceProfiler
public abstract class SessionProfilerAdapter extends java.lang.Object implements SessionProfiler
Adapter class for SessionProfiler interface. This class should be subclasses for profilers to avoid backward compatiblity issues with future releases when additional API is added to the interface.- Author:
- James Sutherland
-
-
Field Summary
-
Fields inherited from interface org.eclipse.persistence.sessions.SessionProfiler
ALL, AssignSequence, CacheCoordination, CacheCoordinationSerialize, CacheHits, CacheMisses, CacheSize, Caching, ChangeSetsNotProcessed, ChangeSetsProcessed, ClientSessionCreated, ClientSessionReleased, ConnectionManagement, ConnectionPing, Connects, DescriptorEvent, Disconnects, DistributedMerge, HEAVY, JtsAfterCompletion, JtsBeforeCompletion, Logging, LoginTime, Merge, NONE, NORMAL, ObjectBuilding, OptimisticLockException, QueryPreparation, RcmReceived, RcmSent, RcmStatus, Register, Remote, RemoteChangeSet, RemoteLazy, RemoteMetadata, RowFetch, SessionEvent, SessionName, SqlGeneration, SqlPrepare, StatementExecute, Transaction, UowCommit, UowCommits, UowCreated, UowReleased, UowRollbacks
-
-
Constructor Summary
Constructors Constructor Description SessionProfilerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendOperationProfile(java.lang.String operationName)INTERNAL: End the operation timing.voidendOperationProfile(java.lang.String operationName, DatabaseQuery query, int weight)INTERNAL: End the operation timing.intgetProfileWeight()INTERNAL: Return DMS sensor weight(DMS)voidinitialize()INTERNAL: Initialize EclipseLink noun tree(DMS)voidoccurred(java.lang.String operationName, org.eclipse.persistence.internal.sessions.AbstractSession session)INTERNAL: Increase DMS Event sensor occurrence.voidoccurred(java.lang.String operationName, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)INTERNAL: Increase DMS Event sensor occurrence.java.lang.ObjectprofileExecutionOfQuery(DatabaseQuery query, Record row, org.eclipse.persistence.internal.sessions.AbstractSession session)INTERNAL: Finish a profile operation if profiling.voidsetProfileWeight(int weight)INTERNAL: Set DMS sensor weight(DMS)voidsetSession(Session session)INTERNAL: Set the session.voidstartOperationProfile(java.lang.String operationName)INTERNAL: Start the operation timing.voidstartOperationProfile(java.lang.String operationName, DatabaseQuery query, int weight)INTERNAL: Start the operation timing.voidupdate(java.lang.String operationName, java.lang.Object value)INTERNAL: Update the value of the State sensor.
-
-
-
Method Detail
-
endOperationProfile
public void endOperationProfile(java.lang.String operationName)
INTERNAL: End the operation timing.- Specified by:
endOperationProfilein interfaceSessionProfiler
-
endOperationProfile
public void endOperationProfile(java.lang.String operationName, DatabaseQuery query, int weight)INTERNAL: End the operation timing.- Specified by:
endOperationProfilein interfaceSessionProfiler
-
profileExecutionOfQuery
public java.lang.Object profileExecutionOfQuery(DatabaseQuery query, Record row, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Finish a profile operation if profiling. This assumes the start operation proceeds on the stack. The session must be passed to allow units of work etc. to share their parents profiler.- Specified by:
profileExecutionOfQueryin interfaceSessionProfiler- Returns:
- the execution result of the query.
-
setSession
public void setSession(Session session)
INTERNAL: Set the session.- Specified by:
setSessionin interfaceSessionProfiler
-
startOperationProfile
public void startOperationProfile(java.lang.String operationName)
INTERNAL: Start the operation timing.- Specified by:
startOperationProfilein interfaceSessionProfiler
-
startOperationProfile
public void startOperationProfile(java.lang.String operationName, DatabaseQuery query, int weight)INTERNAL: Start the operation timing.- Specified by:
startOperationProfilein interfaceSessionProfiler
-
update
public void update(java.lang.String operationName, java.lang.Object value)INTERNAL: Update the value of the State sensor.(DMS)- Specified by:
updatein interfaceSessionProfiler
-
occurred
public void occurred(java.lang.String operationName, org.eclipse.persistence.internal.sessions.AbstractSession session)INTERNAL: Increase DMS Event sensor occurrence.(DMS)- Specified by:
occurredin interfaceSessionProfiler
-
occurred
public void occurred(java.lang.String operationName, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)INTERNAL: Increase DMS Event sensor occurrence.(DMS)- Specified by:
occurredin interfaceSessionProfiler
-
setProfileWeight
public void setProfileWeight(int weight)
INTERNAL: Set DMS sensor weight(DMS)- Specified by:
setProfileWeightin interfaceSessionProfiler
-
getProfileWeight
public int getProfileWeight()
INTERNAL: Return DMS sensor weight(DMS)- Specified by:
getProfileWeightin interfaceSessionProfiler
-
initialize
public void initialize()
INTERNAL: Initialize EclipseLink noun tree(DMS)- Specified by:
initializein interfaceSessionProfiler
-
-