Package org.eclipse.persistence.sessions
Interface SessionProfiler
-
- All Known Implementing Classes:
PerformanceMonitor,PerformanceProfiler,SessionProfilerAdapter
public interface SessionProfilerPurpose: 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 intALLstatic java.lang.StringAssignSequencestatic java.lang.StringCacheCoordinationstatic java.lang.StringCacheCoordinationSerializestatic java.lang.StringCacheHitsstatic java.lang.StringCacheMissesstatic java.lang.StringCacheSizestatic java.lang.StringCachingstatic java.lang.StringChangeSetsNotProcessedstatic java.lang.StringChangeSetsProcessedstatic java.lang.StringClientSessionCreatedstatic java.lang.StringClientSessionReleasedstatic java.lang.StringConnectionManagementstatic java.lang.StringConnectionPingstatic java.lang.StringConnectsstatic java.lang.StringDescriptorEventstatic java.lang.StringDisconnectsstatic java.lang.StringDistributedMergestatic intHEAVYstatic java.lang.StringJtsAfterCompletionstatic java.lang.StringJtsBeforeCompletionstatic java.lang.StringLoggingstatic java.lang.StringLoginTimestatic java.lang.StringMergestatic intNONEstatic intNORMALstatic java.lang.StringObjectBuildingstatic java.lang.StringOptimisticLockExceptionstatic java.lang.StringQueryPreparationstatic java.lang.StringRcmReceivedstatic java.lang.StringRcmSentstatic java.lang.StringRcmStatusstatic java.lang.StringRegisterstatic java.lang.StringRemotestatic java.lang.StringRemoteChangeSetstatic java.lang.StringRemoteLazystatic java.lang.StringRemoteMetadatastatic java.lang.StringRowFetchstatic java.lang.StringSessionEventstatic java.lang.StringSessionNamestatic java.lang.StringSqlGenerationstatic java.lang.StringSqlPreparestatic java.lang.StringStatementExecutestatic java.lang.StringTransactionstatic java.lang.StringUowCommitstatic java.lang.StringUowCommitsstatic java.lang.StringUowCreatedstatic java.lang.StringUowReleasedstatic java.lang.StringUowRollbacks
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
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)
-
-