19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.jdi; 27 import java.util.List; 28 29 /** 30 * A thread object from the target VM. 31 * A ThreadReference is an {@link ObjectReference} with additional 32 * access to thread-specific information from the target VM. 33 * 34 * @author Robert Field 35 * @author Gordon Hirsch 36 * @author James McIlree 37 * @since 1.3 38 */ 39 public interface ThreadReference extends ObjectReference 40 { 41 /** Thread status is unknown */ 42 public final int THREAD_STATUS_UNKNOWN =-1; 43 /** Thread has completed execution */ 44 public final int THREAD_STATUS_ZOMBIE = 0; 45 /** Thread is runnable */ 46 public final int THREAD_STATUS_RUNNING = 1; 47 /** Thread is sleeping - Thread.sleep() or JVM_Sleep() was called */ 48 public final int THREAD_STATUS_SLEEPING = 2; 49 /** Thread is waiting on a java monitor */ 50 public final int THREAD_STATUS_MONITOR = 3; 51 /** Thread is waiting - Object.wait() or JVM_MonitorWait() was called */ 52 public final int THREAD_STATUS_WAIT = 4; 53 /** Thread has not yet been started */ 54 public final int THREAD_STATUS_NOT_STARTED = 5; 55 56 /** 57 * Returns the name of this thread. 58 * 59 * @return the string containing the thread name. 60 */ | 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.jdi; 27 import java.util.List; 28 29 /** 30 * A thread object from the target VM. 31 * A ThreadReference is an {@link ObjectReference} with additional 32 * access to thread-specific information from the target VM. 33 * 34 * @author Robert Field 35 * @author Gordon Hirsch 36 * @author James McIlree 37 * @since 1.3 38 */ 39 @jdk.Supported 40 public interface ThreadReference extends ObjectReference { 41 /** Thread status is unknown */ 42 public final int THREAD_STATUS_UNKNOWN =-1; 43 /** Thread has completed execution */ 44 public final int THREAD_STATUS_ZOMBIE = 0; 45 /** Thread is runnable */ 46 public final int THREAD_STATUS_RUNNING = 1; 47 /** Thread is sleeping - Thread.sleep() or JVM_Sleep() was called */ 48 public final int THREAD_STATUS_SLEEPING = 2; 49 /** Thread is waiting on a java monitor */ 50 public final int THREAD_STATUS_MONITOR = 3; 51 /** Thread is waiting - Object.wait() or JVM_MonitorWait() was called */ 52 public final int THREAD_STATUS_WAIT = 4; 53 /** Thread has not yet been started */ 54 public final int THREAD_STATUS_NOT_STARTED = 5; 55 56 /** 57 * Returns the name of this thread. 58 * 59 * @return the string containing the thread name. 60 */ |