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
    • 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)