Class Tracer

java.lang.Object
com.priint.pubserver.tracing.Tracer

@Deprecated(since="4.6.0", forRemoval=true) public class Tracer extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Tracer for writing trace messages into a persistent data store.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Tracer(Class<?> clazz)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a Tracer object.
    Tracer(Class<?> clazz, String source)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a Tracer object.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apiCall(String source, String hint, String message, Object... values)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    error(String source, String hint, String message, Object... argArray)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    info(String source, String hint, String message, Object... argArray)
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    methodCall(String source, String hint, Class<?> methodClass, String methodName, Object... values)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    methodResult(String source, String hint, Object result, Class<?> methodClass, String methodName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    warning(String source, String hint, String message, Object... argArray)
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SESSION_TRACE_ACTIVE_PROPERTY

      public static final String SESSION_TRACE_ACTIVE_PROPERTY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • Tracer

      public Tracer(Class<?> clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a Tracer object.
      Parameters:
      clazz - Class that calls the Tracer
    • Tracer

      public Tracer(Class<?> clazz, String source)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a Tracer object.
      Parameters:
      clazz - Class that calls the Tracer
      source - Source of Tracer (like plug-in name and / or method name)
  • Method Details

    • info

      @Deprecated(since="4.6.0", forRemoval=true) public void info(String source, String hint, String message, Object... argArray)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write an INFO trace message for a session. Analogous to a call to logger.info().

      For information on the arguments see TracerMessage.

      Parameters:
      source -
      hint -
      message -
      argArray -
    • error

      @Deprecated(since="4.6.0", forRemoval=true) public void error(String source, String hint, String message, Object... argArray)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write an ERROR trace message for a session. Analogous to a call to logger.error().

      For information on the arguments see TracerMessage.

      Parameters:
      source -
      hint -
      message -
      argArray -
    • warning

      @Deprecated(since="4.6.0", forRemoval=true) public void warning(String source, String hint, String message, Object... argArray)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write an WARNING trace message for a session. Analogous to a call to logger.warn().

      For information on the arguments see TracerMessage.

      Parameters:
      source -
      hint -
      message -
      argArray -
    • isTraceModeActive

      @Deprecated(since="4.6.0", forRemoval=true) public boolean isTraceModeActive()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns true if trace mode is active for the current session.
      Returns:
      true is tracing is on
    • isTraceModeActive

      @Deprecated(since="4.6.0", forRemoval=true) public boolean isTraceModeActive(String sessionId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Is trace mode for session active
      Parameters:
      sessionId -
      Returns:
      true if tracing is active
    • apiCall

      @Deprecated(since="4.6.0", forRemoval=true) public void apiCall(String source, String hint, String message, Object... values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write an APICALL trace message to trace method calling (e.g. rest calls).
      Parameters:
      source - code source generating this event
      hint - optional text describing measures to be taken, when this event occurs
      message - executed command
      values - array of parameter values as array of Object (optional)
    • methodCall

      @Deprecated(since="4.6.0", forRemoval=true) public void methodCall(String source, String hint, Class<?> methodClass, String methodName, Object... values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write an INFO trace message to trace method calling.
      Parameters:
      source - code source generating this event
      hint - optional text describing measures to be taken, when this event occurs
      methodClass - Class containing a method to execute
      methodName - name of the method (without bracket and parameters)
      values - array of parameter values as array of Object
    • methodResult

      @Deprecated(since="4.6.0", forRemoval=true) public void methodResult(String source, String hint, Object result, Class<?> methodClass, String methodName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write an INFO trace message with method result.
      Parameters:
      source - code source generating this event
      hint - optional text describing measures to be taken, when this event occurs
      result - result of the method to trace
      methodClass - Class containing a method to execute
      methodName - name of the method (without bracket and parameters)