KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > api > debugger > jpda > JPDAThreadGroup


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.api.debugger.jpda;
21
22
23 /**
24  * Represents one Java thread group in debugged process.
25  *
26  * <pre style="background-color: rgb(255, 255, 102);">
27  * Since JDI interfaces evolve from one version to another, it's strongly recommended
28  * not to implement this interface in client code. New methods can be added to
29  * this interface at any time to keep up with the JDI functionality.</pre>
30  *
31  * @author Jan Jancura
32  */

33 public interface JPDAThreadGroup {
34
35
36     /**
37      * Getter for the name of thread group property.
38      *
39      * @return name of thread group
40      */

41     public abstract String JavaDoc getName ();
42
43     /**
44      * Returns parent thread group or null (for root thread group).
45      *
46      * @return parent thread group or null (for root thread group)
47      */

48     public abstract JPDAThreadGroup getParentThreadGroup ();
49     
50     /**
51      * Returns this thread group's threads.
52      *
53      * @return threads from this thread group
54      */

55     public abstract JPDAThread[] getThreads ();
56     
57     /**
58      * Returns this thread group's thread groups.
59      *
60      * @return thread groups s from this thread group
61      */

62     public abstract JPDAThreadGroup[] getThreadGroups ();
63     
64     /**
65      * Suspends all threads and thread groups in this thread group.
66      */

67     public abstract void suspend ();
68     
69     /**
70      * Unsuspends all threads and thread groups in this thread group.
71      */

72     public abstract void resume ();
73 }
Popular Tags