Class ThreadStackTrace

java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.ThreadStackTrace
All Implemented Interfaces:
Serializable

This class defines a data structure that can hold information about a thread stack trace read from the Directory Server's stack trace monitor.
NOTE: This class, and other classes within the com.unboundid.ldap.sdk.unboundidds package structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.

The information available in a thread stack trace includes:
  • The name of the thread. This is generally a user-friendly string that indicates what that thread does within the server.
  • The thread ID that is assigned to the thread by the JVM.
  • The stack trace frames for that thread as a list of StackTraceElement objects.
See the documentation in the StackTraceMonitorEntry class for information about accessing the Directory Server stack trace.
See Also:
  • Constructor Details

    • ThreadStackTrace

      public ThreadStackTrace(int threadID, @NotNull String threadName, @NotNull List<StackTraceElement> stackTraceElements)
      Creates a new thread stack trace with the provided information.
      Parameters:
      threadID - The thread ID for the associated thread.
      threadName - The name for the associated thread.
      stackTraceElements - A list of the stack trace elements for the associated thread. It may be empty if no stack trace was available.
  • Method Details

    • getThreadID

      public int getThreadID()
      Retrieves the thread ID for the associated thread.
      Returns:
      The thread ID for the associated thread.
    • getThreadName

      Retrieves the name of the associated thread.
      Returns:
      The name of the associated thread.
    • getStackTraceElements

      Retrieves the list of stack trace elements for the associated thread.
      Returns:
      The list of stack trace elements for the associated thread, or an empty list if no stack trace was available.