com.unboundid.ldap.sdk.unboundidds.monitors
Class ThreadStackTrace

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

@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class ThreadStackTrace
extends java.lang.Object
implements java.io.Serializable

NOTE: This class is part of the Commercial Edition of the UnboundID LDAP SDK for Java. It is not available for use in applications that include only the Standard Edition of the LDAP SDK, and is not supported for use in conjunction with non-UnboundID products.
This class defines a data structure that can hold information about a thread stack trace read from the UnboundID Directory Server's stack trace monitor. The information available in a thread stack trace includes: See the documentation in the StackTraceMonitorEntry class for information about accessing the Directory Server stack trace.

See Also:
Serialized Form

Constructor Summary
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
 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.