Module org.eclipse.persistence.core
Package org.eclipse.persistence.sessions
Class SessionProfilerAdapter
java.lang.Object
org.eclipse.persistence.sessions.SessionProfilerAdapter
- All Implemented Interfaces:
SessionProfiler
- Direct Known Subclasses:
PerformanceProfiler
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.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endOperationProfile
(String operationName) INTERNAL: End the operation timing.void
endOperationProfile
(String operationName, DatabaseQuery query, int weight) INTERNAL: End the operation timing.int
INTERNAL: Return DMS sensor weight(DMS)void
INTERNAL: Initialize EclipseLink noun tree(DMS)void
occurred
(String operationName, AbstractSession session) INTERNAL: Increase DMS Event sensor occurrence.(DMS)void
occurred
(String operationName, DatabaseQuery query, AbstractSession session) INTERNAL: Increase DMS Event sensor occurrence.(DMS)profileExecutionOfQuery
(DatabaseQuery query, DataRecord row, AbstractSession session) INTERNAL: Finish a profile operation if profiling.void
setProfileWeight
(int weight) INTERNAL: Set DMS sensor weight(DMS)void
setSession
(Session session) INTERNAL: Set the session.void
startOperationProfile
(String operationName) INTERNAL: Start the operation timing.void
startOperationProfile
(String operationName, DatabaseQuery query, int weight) INTERNAL: Start the operation timing.void
INTERNAL: Update the value of the State sensor.(DMS)
-
Constructor Details
-
SessionProfilerAdapter
public SessionProfilerAdapter()
-
-
Method Details
-
endOperationProfile
INTERNAL: End the operation timing.- Specified by:
endOperationProfile
in interfaceSessionProfiler
-
endOperationProfile
INTERNAL: End the operation timing.- Specified by:
endOperationProfile
in interfaceSessionProfiler
-
profileExecutionOfQuery
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:
profileExecutionOfQuery
in interfaceSessionProfiler
- Returns:
- the execution result of the query.
-
setSession
INTERNAL: Set the session.- Specified by:
setSession
in interfaceSessionProfiler
-
startOperationProfile
INTERNAL: Start the operation timing.- Specified by:
startOperationProfile
in interfaceSessionProfiler
-
startOperationProfile
INTERNAL: Start the operation timing.- Specified by:
startOperationProfile
in interfaceSessionProfiler
-
update
INTERNAL: Update the value of the State sensor.(DMS)- Specified by:
update
in interfaceSessionProfiler
-
occurred
INTERNAL: Increase DMS Event sensor occurrence.(DMS)- Specified by:
occurred
in interfaceSessionProfiler
-
occurred
INTERNAL: Increase DMS Event sensor occurrence.(DMS)- Specified by:
occurred
in interfaceSessionProfiler
-
setProfileWeight
public void setProfileWeight(int weight) INTERNAL: Set DMS sensor weight(DMS)- Specified by:
setProfileWeight
in interfaceSessionProfiler
-
getProfileWeight
public int getProfileWeight()INTERNAL: Return DMS sensor weight(DMS)- Specified by:
getProfileWeight
in interfaceSessionProfiler
-
initialize
public void initialize()INTERNAL: Initialize EclipseLink noun tree(DMS)- Specified by:
initialize
in interfaceSessionProfiler
-