|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.opends.server.api.DirectoryThread
@PublicAPI(stability=VOLATILE,
mayInstantiate=true,
mayExtend=true,
mayInvoke=true)
public class DirectoryThread
This class defines a generic thread that should be the superclass
for all threads created by the Directory Server. That is, instead
of having a class that "extends Thread", you should make it
"extends DirectoryThread". This provides various value-added
capabilities, including:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
|
DirectoryThread(java.lang.Runnable target,
java.lang.String threadName)
Creates a new instance of this directory thread with the specified name and with the specified target as its run object. |
protected |
DirectoryThread(java.lang.String threadName)
Creates a new instance of this directory thread with the specified name. |
protected |
DirectoryThread(java.lang.ThreadGroup threadGroup,
java.lang.String threadName)
Creates a new instance of this directory thread with the specified name as a part of the given thread group. |
| Method Summary | |
|---|---|
Task |
getAssociatedTask()
Retrieves the task with which this thread is associated. |
java.lang.StackTraceElement[] |
getCreationStackTrace()
Retrieves the stack trace that was captured at the time that this thread was created. |
java.util.Map<java.lang.String,java.lang.String> |
getDebugProperties()
Retrieves any relevent debug information with which this tread is associated so they can be included in debug messages. |
java.lang.Thread |
getParentThread()
Retrieves a reference to the parent thread that created this directory thread. |
void |
setAssociatedTask(Task task)
Sets the task with which this thread is associated. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryThread(java.lang.Runnable target,
java.lang.String threadName)
target - The target runnable object.threadName - The human-readable name to use for this
thread for debugging purposes.protected DirectoryThread(java.lang.String threadName)
threadName - The human-readable name to use for this
thread for debugging purposes.
protected DirectoryThread(java.lang.ThreadGroup threadGroup,
java.lang.String threadName)
threadGroup - The thread group in which this thread is to
be placed.threadName - The human-readable name to use for this
thread for debugging purposes.| Method Detail |
|---|
public java.lang.StackTraceElement[] getCreationStackTrace()
public java.lang.Thread getParentThread()
public Task getAssociatedTask()
null if there is none.public void setAssociatedTask(Task task)
null to indicate that it is not associated with any task.
task - The task with which this thread is associated.public java.util.Map<java.lang.String,java.lang.String> getDebugProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||