JML

java.lang
Class ThreadGroup

java.lang.Object
  extended byjava.lang.ThreadGroup

public class ThreadGroup
extends Object


Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
(package private)  boolean daemon
           
(package private)  boolean destroyed
           
(package private)  ThreadGroup[] groups
           
(package private)  int maxPriority
           
(package private)  String name
           
(package private)  int ngroups
           
(package private)  int nthreads
           
(package private)  ThreadGroup parent
           
(package private)  Thread[] threads
           
(package private)  boolean vmAllowSuspension
           
 
Constructor Summary
private ThreadGroup()
           
  ThreadGroup(String)
           
  ThreadGroup(ThreadGroup, String)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
 int activeCount()
           
 int activeGroupCount()
           
(package private)  void add(Thread)
           
private  void add(ThreadGroup)
           
 boolean allowThreadSuspension(boolean)
           
 void checkAccess()
           
 void destroy()
           
 int enumerate(Thread[])
           
 int enumerate(Thread[], boolean)
           
private  int enumerate(Thread[], int, boolean)
           
 int enumerate(ThreadGroup[])
           
 int enumerate(ThreadGroup[], boolean)
           
private  int enumerate(ThreadGroup[], int, boolean)
           
 int getMaxPriority()
           
 String getName()
           
 ThreadGroup getParent()
           
 void interrupt()
           
 boolean isDaemon()
           
 boolean isDestroyed()
           
 void list()
           
(package private)  void list(PrintStream, int)
           
 boolean parentOf(ThreadGroup)
           
(package private)  void remove(Thread)
           
private  void remove(ThreadGroup)
           
 void resume()
           
 void setDaemon(boolean)
           
 void setMaxPriority(int)
           
 void stop()
           
private  boolean stopOrSuspend(boolean)
           
 void suspend()
           
 String toString()
           
 void uncaughtException(Thread, Throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nthreads

int nthreads

name

String name

groups

ThreadGroup[] groups

daemon

boolean daemon

vmAllowSuspension

boolean vmAllowSuspension

ngroups

int ngroups

maxPriority

int maxPriority

parent

ThreadGroup parent

threads

Thread[] threads

destroyed

boolean destroyed
Constructor Detail

ThreadGroup

private ThreadGroup()

ThreadGroup

public ThreadGroup(String)

ThreadGroup

public ThreadGroup(ThreadGroup,
                   String)
Method Detail

activeCount

public int activeCount()

activeGroupCount

public int activeGroupCount()

getMaxPriority

public final int getMaxPriority()

checkAccess

public final void checkAccess()

destroy

public final void destroy()

interrupt

public final void interrupt()

list

public void list()

resume

public final void resume()

stop

public final void stop()

suspend

public final void suspend()

isDaemon

public final boolean isDaemon()

isDestroyed

public boolean isDestroyed()

setMaxPriority

public final void setMaxPriority(int)

setDaemon

public final void setDaemon(boolean)

allowThreadSuspension

public boolean allowThreadSuspension(boolean)

stopOrSuspend

private boolean stopOrSuspend(boolean)

list

void list(PrintStream,
          int)

getName

public final String getName()

toString

public String toString()
Overrides:
toString in class Object

add

void add(Thread)

remove

void remove(Thread)

enumerate

public int enumerate(Thread[])

enumerate

private int enumerate(Thread[],
                      int,
                      boolean)

enumerate

public int enumerate(Thread[],
                     boolean)

getParent

public final ThreadGroup getParent()

add

private final void add(ThreadGroup)

remove

private void remove(ThreadGroup)

parentOf

public final boolean parentOf(ThreadGroup)

enumerate

public int enumerate(ThreadGroup[])

enumerate

private int enumerate(ThreadGroup[],
                      int,
                      boolean)

enumerate

public int enumerate(ThreadGroup[],
                     boolean)

uncaughtException

public void uncaughtException(Thread,
                              Throwable)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.