Package org.eclipse.persistence.sessions
Interface SessionProfiler
-
- All Known Implementing Classes:
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
Fields Modifier and Type Field Description static int
ALL
static java.lang.String
AssignSequence
static java.lang.String
CacheCoordination
static java.lang.String
CacheCoordinationSerialize
static java.lang.String
CacheHits
static java.lang.String
CacheMisses
static java.lang.String
CacheSize
static java.lang.String
Caching
static java.lang.String
ChangeSetsNotProcessed
static java.lang.String
ChangeSetsProcessed
static java.lang.String
ClientSessionCreated
static java.lang.String
ClientSessionReleased
static java.lang.String
ConnectionManagement
static java.lang.String
ConnectionPing
static java.lang.String
Connects
static java.lang.String
DescriptorEvent
static java.lang.String
Disconnects
static java.lang.String
DistributedMerge
static int
HEAVY
static java.lang.String
JtsAfterCompletion
static java.lang.String
JtsBeforeCompletion
static java.lang.String
Logging
static java.lang.String
LoginTime
static java.lang.String
Merge
static int
NONE
static int
NORMAL
static java.lang.String
ObjectBuilding
static java.lang.String
OptimisticLockException
static java.lang.String
QueryPreparation
static java.lang.String
RcmReceived
static java.lang.String
RcmSent
static java.lang.String
RcmStatus
static java.lang.String
Register
static java.lang.String
Remote
static java.lang.String
RemoteChangeSet
static java.lang.String
RemoteLazy
static java.lang.String
RemoteMetadata
static java.lang.String
RowFetch
static java.lang.String
SessionEvent
static java.lang.String
SessionName
static java.lang.String
SqlGeneration
static java.lang.String
SqlPrepare
static java.lang.String
StatementExecute
static java.lang.String
Transaction
static java.lang.String
UowCommit
static java.lang.String
UowCommits
static java.lang.String
UowCreated
static java.lang.String
UowReleased
static java.lang.String
UowRollbacks
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endOperationProfile(java.lang.String operationName)
INTERNAL: End the operation timing.void
endOperationProfile(java.lang.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(java.lang.String operationName, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Increase DMS Event sensor occurrence.void
occurred(java.lang.String operationName, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Increase DMS Event sensor occurrence.java.lang.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(java.lang.String operationName)
INTERNAL: Start the operation timing.void
startOperationProfile(java.lang.String operationName, DatabaseQuery query, int weight)
INTERNAL: Start the operation timing.void
update(java.lang.String operationName, java.lang.Object value)
INTERNAL: Update the value of the State sensor.
-
-
-
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 java.lang.String SessionName
- See Also:
- Constant Field Values
-
LoginTime
static final java.lang.String LoginTime
- See Also:
- Constant Field Values
-
RcmStatus
static final java.lang.String RcmStatus
- See Also:
- Constant Field Values
-
CacheSize
static final java.lang.String CacheSize
- See Also:
- Constant Field Values
-
ClientSessionCreated
static final java.lang.String ClientSessionCreated
- See Also:
- Constant Field Values
-
ClientSessionReleased
static final java.lang.String ClientSessionReleased
- See Also:
- Constant Field Values
-
UowCreated
static final java.lang.String UowCreated
- See Also:
- Constant Field Values
-
UowReleased
static final java.lang.String UowReleased
- See Also:
- Constant Field Values
-
UowCommits
static final java.lang.String UowCommits
- See Also:
- Constant Field Values
-
UowRollbacks
static final java.lang.String UowRollbacks
- See Also:
- Constant Field Values
-
OptimisticLockException
static final java.lang.String OptimisticLockException
- See Also:
- Constant Field Values
-
RcmReceived
static final java.lang.String RcmReceived
- See Also:
- Constant Field Values
-
RcmSent
static final java.lang.String RcmSent
- See Also:
- Constant Field Values
-
RemoteChangeSet
static final java.lang.String RemoteChangeSet
- See Also:
- Constant Field Values
-
Connects
static final java.lang.String Connects
- See Also:
- Constant Field Values
-
Disconnects
static final java.lang.String Disconnects
- See Also:
- Constant Field Values
-
CacheHits
static final java.lang.String CacheHits
- See Also:
- Constant Field Values
-
CacheMisses
static final java.lang.String CacheMisses
- See Also:
- Constant Field Values
-
ChangeSetsProcessed
static final java.lang.String ChangeSetsProcessed
- See Also:
- Constant Field Values
-
ChangeSetsNotProcessed
static final java.lang.String ChangeSetsNotProcessed
- See Also:
- Constant Field Values
-
DescriptorEvent
static final java.lang.String DescriptorEvent
- See Also:
- Constant Field Values
-
SessionEvent
static final java.lang.String SessionEvent
- See Also:
- Constant Field Values
-
QueryPreparation
static final java.lang.String QueryPreparation
- See Also:
- Constant Field Values
-
SqlGeneration
static final java.lang.String SqlGeneration
- See Also:
- Constant Field Values
-
SqlPrepare
static final java.lang.String SqlPrepare
- See Also:
- Constant Field Values
-
StatementExecute
static final java.lang.String StatementExecute
- See Also:
- Constant Field Values
-
RowFetch
static final java.lang.String RowFetch
- See Also:
- Constant Field Values
-
ObjectBuilding
static final java.lang.String ObjectBuilding
- See Also:
- Constant Field Values
-
Register
static final java.lang.String Register
- See Also:
- Constant Field Values
-
Merge
static final java.lang.String Merge
- See Also:
- Constant Field Values
-
DistributedMerge
static final java.lang.String DistributedMerge
- See Also:
- Constant Field Values
-
AssignSequence
static final java.lang.String AssignSequence
- See Also:
- Constant Field Values
-
Caching
static final java.lang.String Caching
- See Also:
- Constant Field Values
-
CacheCoordinationSerialize
static final java.lang.String CacheCoordinationSerialize
- See Also:
- Constant Field Values
-
CacheCoordination
static final java.lang.String CacheCoordination
- See Also:
- Constant Field Values
-
ConnectionManagement
static final java.lang.String ConnectionManagement
- See Also:
- Constant Field Values
-
Logging
static final java.lang.String Logging
- See Also:
- Constant Field Values
-
JtsBeforeCompletion
static final java.lang.String JtsBeforeCompletion
- See Also:
- Constant Field Values
-
JtsAfterCompletion
static final java.lang.String JtsAfterCompletion
- See Also:
- Constant Field Values
-
Transaction
static final java.lang.String Transaction
- See Also:
- Constant Field Values
-
UowCommit
static final java.lang.String UowCommit
- See Also:
- Constant Field Values
-
ConnectionPing
static final java.lang.String ConnectionPing
- See Also:
- Constant Field Values
-
Remote
static final java.lang.String Remote
- See Also:
- Constant Field Values
-
RemoteLazy
static final java.lang.String RemoteLazy
- See Also:
- Constant Field Values
-
RemoteMetadata
static final java.lang.String RemoteMetadata
- See Also:
- Constant Field Values
-
-
Method Detail
-
endOperationProfile
void endOperationProfile(java.lang.String operationName)
INTERNAL: End the operation timing.
-
endOperationProfile
void endOperationProfile(java.lang.String operationName, DatabaseQuery query, int weight)
INTERNAL: End the operation timing.
-
profileExecutionOfQuery
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.- Returns:
- the execution result of the query.
-
setSession
void setSession(Session session)
INTERNAL: Set the session.
-
startOperationProfile
void startOperationProfile(java.lang.String operationName)
INTERNAL: Start the operation timing.
-
startOperationProfile
void startOperationProfile(java.lang.String operationName, DatabaseQuery query, int weight)
INTERNAL: Start the operation timing.
-
update
void update(java.lang.String operationName, java.lang.Object value)
INTERNAL: Update the value of the State sensor.(DMS)
-
occurred
void occurred(java.lang.String operationName, org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Increase DMS Event sensor occurrence.(DMS)
-
occurred
void occurred(java.lang.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)
-
-