Class ThreadStackTrace

  • All Implemented Interfaces:
    java.io.Serializable

    @NotMutable
    @ThreadSafety(level=COMPLETELY_THREADSAFE)
    public final class ThreadStackTrace
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadStackTrace​(int threadID, java.lang.String threadName, java.util.List<java.lang.StackTraceElement> stackTraceElements)
      Creates a new thread stack trace with the provided information.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.StackTraceElement> getStackTraceElements()
      Retrieves the list of stack trace elements for the associated thread.
      int getThreadID()
      Retrieves the thread ID for the associated thread.
      java.lang.String getThreadName()
      Retrieves the name of the associated thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadStackTrace

        public ThreadStackTrace​(int threadID,
                                java.lang.String threadName,
                                java.util.List<java.lang.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 Detail

      • getThreadID

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

        public java.lang.String getThreadName()
        Retrieves the name of the associated thread.
        Returns:
        The name of the associated thread.
      • getStackTraceElements

        public java.util.List<java.lang.StackTraceElement> 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.