Class SessionProfilerAdapter

java.lang.Object
org.eclipse.persistence.sessions.SessionProfilerAdapter
All Implemented Interfaces:
SessionProfiler
Direct Known Subclasses:
PerformanceProfiler

public abstract class SessionProfilerAdapter extends Object implements SessionProfiler
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 Details

    • SessionProfilerAdapter

      public SessionProfilerAdapter()
  • Method Details

    • endOperationProfile

      public void endOperationProfile(String operationName)
      INTERNAL: End the operation timing.
      Specified by:
      endOperationProfile in interface SessionProfiler
    • endOperationProfile

      public void endOperationProfile(String operationName, DatabaseQuery query, int weight)
      INTERNAL: End the operation timing.
      Specified by:
      endOperationProfile in interface SessionProfiler
    • profileExecutionOfQuery

      public 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.
      Specified by:
      profileExecutionOfQuery in interface SessionProfiler
      Returns:
      the execution result of the query.
    • setSession

      public void setSession(Session session)
      INTERNAL: Set the session.
      Specified by:
      setSession in interface SessionProfiler
    • startOperationProfile

      public void startOperationProfile(String operationName)
      INTERNAL: Start the operation timing.
      Specified by:
      startOperationProfile in interface SessionProfiler
    • startOperationProfile

      public void startOperationProfile(String operationName, DatabaseQuery query, int weight)
      INTERNAL: Start the operation timing.
      Specified by:
      startOperationProfile in interface SessionProfiler
    • update

      public void update(String operationName, Object value)
      INTERNAL: Update the value of the State sensor.(DMS)
      Specified by:
      update in interface SessionProfiler
    • occurred

      public void occurred(String operationName, org.eclipse.persistence.internal.sessions.AbstractSession session)
      INTERNAL: Increase DMS Event sensor occurrence.(DMS)
      Specified by:
      occurred in interface SessionProfiler
    • occurred

      public void occurred(String operationName, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
      INTERNAL: Increase DMS Event sensor occurrence.(DMS)
      Specified by:
      occurred in interface SessionProfiler
    • setProfileWeight

      public void setProfileWeight(int weight)
      INTERNAL: Set DMS sensor weight(DMS)
      Specified by:
      setProfileWeight in interface SessionProfiler
    • getProfileWeight

      public int getProfileWeight()
      INTERNAL: Return DMS sensor weight(DMS)
      Specified by:
      getProfileWeight in interface SessionProfiler
    • initialize

      public void initialize()
      INTERNAL: Initialize EclipseLink noun tree(DMS)
      Specified by:
      initialize in interface SessionProfiler