Interface TraceManager

    • Method Detail

      • startTraceSession

        void startTraceSession​(java.lang.String traceSessionName,
                               java.lang.String configuration)
                        throws java.sql.SQLException
        Starts a trace session with an optioanl trace session name and configuration
        Parameters:
        traceSessionName - The trace session name (optional)
        configuration - The trace configuration. For an example, look into fbtrace.conf in the root directory of your Firebird installation
        Throws:
        java.sql.SQLException
      • stopTraceSession

        void stopTraceSession​(int traceSessionId)
                       throws java.sql.SQLException
        Stops a trace session with the given trace session ID
        Parameters:
        traceSessionId - The trace session ID
        Throws:
        java.sql.SQLException
      • suspendTraceSession

        void suspendTraceSession​(int traceSessionId)
                          throws java.sql.SQLException
        Suspends a trace session with the given trace session ID
        Parameters:
        traceSessionId - The trace session ID
        Throws:
        java.sql.SQLException
      • resumeTraceSession

        void resumeTraceSession​(int traceSessionId)
                         throws java.sql.SQLException
        Resumes a trace session with the given trace session ID
        Parameters:
        traceSessionId - The trace session ID
        Throws:
        java.sql.SQLException
      • listTraceSessions

        void listTraceSessions()
                        throws java.sql.SQLException
        List all currently registered trace sessions
        Throws:
        java.sql.SQLException
      • getSessionId

        java.lang.Integer getSessionId​(java.lang.String sessionName)
        Gets the sessionId for the given name.

        Returns null if the sessionName does not exist or hasn't been initialized yet.

        If multiple sessions are started with the same name, the last one is returned.

        Parameters:
        sessionName - Name of the session
        Returns:
        ID of the session or null otherwise