Class ThreadStackTrace
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.ThreadStackTrace
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class ThreadStackTrace
extends Object
implements 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.
The information available in a thread stack trace includes:
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
StackTraceElementobjects.
StackTraceMonitorEntry class for
information about accessing the Directory Server stack trace.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThreadStackTrace(int threadID, String threadName, List<StackTraceElement> stackTraceElements) Creates a new thread stack trace with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of stack trace elements for the associated thread.intRetrieves the thread ID for the associated thread.Retrieves the name of the associated thread.
-
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
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.
-