Package org.eclipse.persistence.sessions
Interface SessionProfiler
-
- All Known Implementing Classes:
DMSPerformanceProfiler
,PerformanceMonitor
,PerformanceProfiler
,SessionProfilerAdapter
public interface SessionProfiler
Purpose: This interface defines the link between the Session and the PerformanceProfiler tool. It is provide to decouple the session from tools and to allow other profilers to register with the session.
- Author:
- James Sutherland
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endOperationProfile(String operationName)
INTERNAL: End the operation timing.void
endOperationProfile(String operationName, DatabaseQuery query, int weight)
INTERNAL: End the operation timing.int
getProfileWeight()
INTERNAL: Return DMS sensor weight(DMS)void
initialize()
INTERNAL: Initialize EclipseLink noun tree(DMS)void
occurred(String operationName, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Increase DMS Event sensor occurrence.(DMS)void
occurred(String operationName, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Increase DMS Event sensor occurrence.(DMS)Object
profileExecutionOfQuery(DatabaseQuery query, Record row, org.eclipse.persistence.internal.sessions.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
update(String operationName, Object value)
INTERNAL: Update the value of the State sensor.(DMS)
-
-
-
Field Detail
-
NONE
static final int NONE
- See Also:
- Constant Field Values
-
NORMAL
static final int NORMAL
- See Also:
- Constant Field Values
-
HEAVY
static final int HEAVY
- See Also:
- Constant Field Values
-
ALL
static final int ALL
- See Also:
- Constant Field Values
-
SessionName
static final String SessionName
- See Also:
- Constant Field Values
-
LoginTime
static final String LoginTime
- See Also:
- Constant Field Values
-
RcmStatus
static final String RcmStatus
- See Also:
- Constant Field Values
-
CacheSize
static final String CacheSize
- See Also:
- Constant Field Values
-
ClientSessionCreated
static final String ClientSessionCreated
- See Also:
- Constant Field Values
-
ClientSessionReleased
static final String ClientSessionReleased
- See Also:
- Constant Field Values
-
UowCreated
static final String UowCreated
- See Also:
- Constant Field Values
-
UowReleased
static final String UowReleased
- See Also:
- Constant Field Values
-
UowCommits
static final String UowCommits
- See Also:
- Constant Field Values
-
UowRollbacks
static final String UowRollbacks
- See Also:
- Constant Field Values
-
OptimisticLockException
static final String OptimisticLockException
- See Also:
- Constant Field Values
-
RcmReceived
static final String RcmReceived
- See Also:
- Constant Field Values
-
RcmSent
static final String RcmSent
- See Also:
- Constant Field Values
-
RemoteChangeSet
static final String RemoteChangeSet
- See Also:
- Constant Field Values
-
Connects
static final String Connects
- See Also:
- Constant Field Values
-
Disconnects
static final String Disconnects
- See Also:
- Constant Field Values
-
CacheHits
static final String CacheHits
- See Also:
- Constant Field Values
-
CacheMisses
static final String CacheMisses
- See Also:
- Constant Field Values
-
ChangeSetsProcessed
static final String ChangeSetsProcessed
- See Also:
- Constant Field Values
-
ChangeSetsNotProcessed
static final String ChangeSetsNotProcessed
- See Also:
- Constant Field Values
-
DescriptorEvent
static final String DescriptorEvent
- See Also:
- Constant Field Values
-
SessionEvent
static final String SessionEvent
- See Also:
- Constant Field Values
-
QueryPreparation
static final String QueryPreparation
- See Also:
- Constant Field Values
-
SqlGeneration
static final String SqlGeneration
- See Also:
- Constant Field Values
-
SqlPrepare
static final String SqlPrepare
- See Also:
- Constant Field Values
-
StatementExecute
static final String StatementExecute
- See Also:
- Constant Field Values
-
RowFetch
static final String RowFetch
- See Also:
- Constant Field Values
-
ObjectBuilding
static final String ObjectBuilding
- See Also:
- Constant Field Values
-
Register
static final String Register
- See Also:
- Constant Field Values
-
Merge
static final String Merge
- See Also:
- Constant Field Values
-
DistributedMerge
static final String DistributedMerge
- See Also:
- Constant Field Values
-
AssignSequence
static final String AssignSequence
- See Also:
- Constant Field Values
-
Caching
static final String Caching
- See Also:
- Constant Field Values
-
CacheCoordinationSerialize
static final String CacheCoordinationSerialize
- See Also:
- Constant Field Values
-
CacheCoordination
static final String CacheCoordination
- See Also:
- Constant Field Values
-
ConnectionManagement
static final String ConnectionManagement
- See Also:
- Constant Field Values
-
Logging
static final String Logging
- See Also:
- Constant Field Values
-
JtsBeforeCompletion
static final String JtsBeforeCompletion
- See Also:
- Constant Field Values
-
JtsAfterCompletion
static final String JtsAfterCompletion
- See Also:
- Constant Field Values
-
Transaction
static final String Transaction
- See Also:
- Constant Field Values
-
UowCommit
static final String UowCommit
- See Also:
- Constant Field Values
-
ConnectionPing
static final String ConnectionPing
- See Also:
- Constant Field Values
-
Remote
static final String Remote
- See Also:
- Constant Field Values
-
RemoteLazy
static final String RemoteLazy
- See Also:
- Constant Field Values
-
RemoteMetadata
static final String RemoteMetadata
- See Also:
- Constant Field Values
-
-
Method Detail
-
endOperationProfile
void endOperationProfile(String operationName)
INTERNAL: End the operation timing.
-
endOperationProfile
void endOperationProfile(String operationName, DatabaseQuery query, int weight)
INTERNAL: End the operation timing.
-
profileExecutionOfQuery
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.- Returns:
- the execution result of the query.
-
setSession
void setSession(Session session)
INTERNAL: Set the session.
-
startOperationProfile
void startOperationProfile(String operationName)
INTERNAL: Start the operation timing.
-
startOperationProfile
void startOperationProfile(String operationName, DatabaseQuery query, int weight)
INTERNAL: Start the operation timing.
-
update
void update(String operationName, Object value)
INTERNAL: Update the value of the State sensor.(DMS)
-
occurred
void occurred(String operationName, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Increase DMS Event sensor occurrence.(DMS)
-
occurred
void occurred(String operationName, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Increase DMS Event sensor occurrence.(DMS)
-
setProfileWeight
void setProfileWeight(int weight)
INTERNAL: Set DMS sensor weight(DMS)
-
getProfileWeight
int getProfileWeight()
INTERNAL: Return DMS sensor weight(DMS)
-
initialize
void initialize()
INTERNAL: Initialize EclipseLink noun tree(DMS)
-
-