Top Description Constructors Methods
org.eclipse.persistence.sessions

public abstract Class SessionProfilerAdapter

extends Object
implements SessionProfiler
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.sessions.SessionProfiler
Known Direct Subclasses
org.eclipse.persistence.tools.profiler.PerformanceProfiler
Imports
org.eclipse.persistence.internal.sessions.AbstractRecord, .AbstractSession, org.eclipse.persistence.queries.*

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
endOperationProfile(String operationName)

Implements org.eclipse.persistence.sessions.SessionProfiler.endOperationProfile.

INTERNAL: End the operation timing.
public void
endOperationProfile(String operationName, DatabaseQuery query, int weight)

Implements org.eclipse.persistence.sessions.SessionProfiler.endOperationProfile.

INTERNAL: End the operation timing.
public int
getProfileWeight()

Implements org.eclipse.persistence.sessions.SessionProfiler.getProfileWeight.

INTERNAL: Return DMS sensor weight(DMS)
public void
initialize()

Implements org.eclipse.persistence.sessions.SessionProfiler.initialize.

INTERNAL: Initialize EclipseLink noun tree(DMS)
public void
occurred(String operationName, AbstractSession session)

Implements org.eclipse.persistence.sessions.SessionProfiler.occurred.

INTERNAL: Increase DMS Event sensor occurrence.(DMS)
public void
occurred(String operationName, DatabaseQuery query, AbstractSession session)

Implements org.eclipse.persistence.sessions.SessionProfiler.occurred.

INTERNAL: Increase DMS Event sensor occurrence.(DMS)
public Object

Returns:

the execution result of the query.
profileExecutionOfQuery
(DatabaseQuery query, DataRecord row, AbstractSession session)

Implements org.eclipse.persistence.sessions.SessionProfiler.profileExecutionOfQuery.

INTERNAL: Finish a profile operation if profiling.
public void
setProfileWeight(int weight)

Implements org.eclipse.persistence.sessions.SessionProfiler.setProfileWeight.

INTERNAL: Set DMS sensor weight(DMS)
public void
public void
startOperationProfile(String operationName)

Implements org.eclipse.persistence.sessions.SessionProfiler.startOperationProfile.

INTERNAL: Start the operation timing.
public void
startOperationProfile(String operationName, DatabaseQuery query, int weight)

Implements org.eclipse.persistence.sessions.SessionProfiler.startOperationProfile.

INTERNAL: Start the operation timing.
public void
update(String operationName, Object value)

Implements org.eclipse.persistence.sessions.SessionProfiler.update.

INTERNAL: Update the value of the State sensor.(DMS)
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SessionProfilerAdapterback to summary
public SessionProfilerAdapter()

Method Detail

endOperationProfileback to summary
public void endOperationProfile(String operationName)

Implements org.eclipse.persistence.sessions.SessionProfiler.endOperationProfile.

INTERNAL: End the operation timing.

Annotations
@Override
endOperationProfileback to summary
public void endOperationProfile(String operationName, DatabaseQuery query, int weight)

Implements org.eclipse.persistence.sessions.SessionProfiler.endOperationProfile.

INTERNAL: End the operation timing.

Annotations
@Override
getProfileWeightback to summary
public int getProfileWeight()

Implements org.eclipse.persistence.sessions.SessionProfiler.getProfileWeight.

INTERNAL: Return DMS sensor weight(DMS)

Annotations
@Override
initializeback to summary
public void initialize()

Implements org.eclipse.persistence.sessions.SessionProfiler.initialize.

INTERNAL: Initialize EclipseLink noun tree(DMS)

Annotations
@Override
occurredback to summary
public void occurred(String operationName, AbstractSession session)

Implements org.eclipse.persistence.sessions.SessionProfiler.occurred.

INTERNAL: Increase DMS Event sensor occurrence.(DMS)

Annotations
@Override
occurredback to summary
public void occurred(String operationName, DatabaseQuery query, AbstractSession session)

Implements org.eclipse.persistence.sessions.SessionProfiler.occurred.

INTERNAL: Increase DMS Event sensor occurrence.(DMS)

Annotations
@Override
profileExecutionOfQueryback to summary
public Object profileExecutionOfQuery(DatabaseQuery query, DataRecord row, AbstractSession session)

Implements org.eclipse.persistence.sessions.SessionProfiler.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.

Returns:Object

the execution result of the query.

Annotations
@Override
setProfileWeightback to summary
public void setProfileWeight(int weight)

Implements org.eclipse.persistence.sessions.SessionProfiler.setProfileWeight.

INTERNAL: Set DMS sensor weight(DMS)

Annotations
@Override
setSessionback to summary
public void setSession(Session session)

Implements org.eclipse.persistence.sessions.SessionProfiler.setSession.

INTERNAL: Set the session.

Annotations
@Override
startOperationProfileback to summary
public void startOperationProfile(String operationName)

Implements org.eclipse.persistence.sessions.SessionProfiler.startOperationProfile.

INTERNAL: Start the operation timing.

Annotations
@Override
startOperationProfileback to summary
public void startOperationProfile(String operationName, DatabaseQuery query, int weight)

Implements org.eclipse.persistence.sessions.SessionProfiler.startOperationProfile.

INTERNAL: Start the operation timing.

Annotations
@Override
updateback to summary
public void update(String operationName, Object value)

Implements org.eclipse.persistence.sessions.SessionProfiler.update.

INTERNAL: Update the value of the State sensor.(DMS)

Annotations
@Override