KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdi > ThreadReference


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package com.sun.jdi;
12
13
14 import java.util.List JavaDoc;
15
16 public interface ThreadReference extends ObjectReference {
17     public static final int THREAD_STATUS_UNKNOWN = -1;
18     public static final int THREAD_STATUS_ZOMBIE = 0;
19     public static final int THREAD_STATUS_RUNNING = 1;
20     public static final int THREAD_STATUS_SLEEPING = 2;
21     public static final int THREAD_STATUS_MONITOR = 3;
22     public static final int THREAD_STATUS_WAIT = 4;
23     public static final int THREAD_STATUS_NOT_STARTED = 5;
24     public ObjectReference currentContendedMonitor() throws IncompatibleThreadStateException;
25     public StackFrame frame(int arg1) throws IncompatibleThreadStateException;
26     public int frameCount() throws IncompatibleThreadStateException;
27     public List JavaDoc frames() throws IncompatibleThreadStateException;
28     public List JavaDoc frames(int arg1, int arg2) throws IncompatibleThreadStateException;
29     public void interrupt();
30     public boolean isAtBreakpoint();
31     public boolean isSuspended();
32     public String JavaDoc name();
33     public List JavaDoc ownedMonitors() throws IncompatibleThreadStateException;
34     public void popFrames(StackFrame frame) throws IncompatibleThreadStateException;
35     public void resume();
36     public int status();
37     public void stop(ObjectReference arg1) throws InvalidTypeException;
38     public void suspend();
39     public int suspendCount();
40     public ThreadGroupReference threadGroup();
41     public void forceEarlyReturn(Value arg1) throws InvalidTypeException, ClassNotLoadedException, IncompatibleThreadStateException;
42     public List JavaDoc ownedMonitorsAndFrames()throws IncompatibleThreadStateException;
43 }
44
Popular Tags