| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | |
| | | import org.opends.server.backends.task.Task; |
| | | import org.opends.server.core.DirectoryServer; |
| | | |
| | | import static org.opends.server.loggers.Debug.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | |
| | | public class DirectoryThread |
| | | extends Thread |
| | | { |
| | | /** |
| | | * The fully-qualified name of this class for debugging purposes. |
| | | */ |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.core.DirectoryThread"; |
| | | |
| | | |
| | | |
| | |
| | | super (DirectoryServer.getDirectoryThreadGroup(), target, |
| | | threadName); |
| | | |
| | | assert debugConstructor(CLASS_NAME, String.valueOf(threadName)); |
| | | |
| | | init(); |
| | | } |
| | |
| | | { |
| | | super(DirectoryServer.getDirectoryThreadGroup(), threadName); |
| | | |
| | | assert debugConstructor(CLASS_NAME, String.valueOf(threadName)); |
| | | |
| | | init(); |
| | | } |
| | |
| | | { |
| | | super(threadGroup, threadName); |
| | | |
| | | assert debugConstructor(CLASS_NAME, String.valueOf(threadGroup), |
| | | String.valueOf(threadName)); |
| | | |
| | | init(); |
| | | } |
| | |
| | | */ |
| | | public StackTraceElement[] getCreationStackTrace() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getCreationStackTrace"); |
| | | |
| | | return creationStackTrace; |
| | | } |
| | |
| | | */ |
| | | public Thread getParentThread() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getParentThread"); |
| | | |
| | | return parentThread; |
| | | } |
| | |
| | | */ |
| | | public Task getAssociatedTask() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getAssociatedTask"); |
| | | |
| | | return task; |
| | | } |
| | |
| | | */ |
| | | public void setAssociatedTask(Task task) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setAssociatedTask"); |
| | | |
| | | this.task = task; |
| | | } |