KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > debug > core > IJavaThreadGroup


1 /*******************************************************************************
2  * Copyright (c) 2006 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 org.eclipse.jdt.debug.core;
12
13 import org.eclipse.debug.core.DebugException;
14 import org.eclipse.debug.core.model.IDebugElement;
15
16 /**
17  * Represents a thread group in the target VM.
18  *
19  * @since 3.2
20  */

21 public interface IJavaThreadGroup extends IDebugElement {
22
23     /**
24      * Returns the threads in this thread group. Does not include
25      * threads in subgroups.
26      *
27      * @return threads in this group
28      * @throws DebugException
29      */

30     public IJavaThread[] getThreads() throws DebugException;
31     
32     /**
33      * Returns whether this group contains any threads.
34      *
35      * @return whether this group contains any threads
36      * @throws DebugException
37      */

38     public boolean hasThreads() throws DebugException;
39     
40     /**
41      * Returns the thread group this thread group is contained in or <code>null</code>
42      * if none.
43      *
44      * @return parent thread group or <code>null</code>
45      * @throws DebugException
46      */

47     public IJavaThreadGroup getThreadGroup() throws DebugException;
48     
49     /**
50      * Returns whether this thread group contains subgroups.
51      *
52      * @return whether this thread group contains subgroups
53      * @throws DebugException
54      */

55     public boolean hasThreadGroups() throws DebugException;
56     
57     /**
58      * Returns immediate thread groups contained in this thread. Does not include
59      * subgroups of immediate groups.
60      *
61      * @return thread groups contained in this group
62      * @throws DebugException
63      */

64     public IJavaThreadGroup[] getThreadGroups() throws DebugException;
65     
66     /**
67      * Returns the name of this thread group.
68      *
69      * @return thread group name
70      * @throws DebugException
71      */

72     public String JavaDoc getName() throws DebugException;
73 }
74
Popular Tags