Home » openjdk-7 » com.sun » jdi » [javadoc | source]
com.sun.jdi
public interface: ThreadGroupReference [javadoc | source]

All Implemented Interfaces:
    ObjectReference

All Known Implementing Classes:
    ThreadGroupReferenceImpl, ThreadGroupReferenceImpl

A thread group object from the target VM. A ThreadGroupReference is an ObjectReference with additional access to threadgroup-specific information from the target VM.
Method from com.sun.jdi.ThreadGroupReference Summary:
name,   parent,   resume,   suspend,   threadGroups,   threads
Method from com.sun.jdi.ThreadGroupReference Detail:
 public String name()
    Returns the name of this thread group.
 public ThreadGroupReference parent()
    Returns the parent of this thread group.
 public  void resume()
    Resumes all threads in this thread group. Each thread in this group and in all of its subgroups will be resumed as described in ThreadReference#resume .
 public  void suspend()
    Suspends all threads in this thread group. Each thread in this group and in all of its subgroups will be suspended as described in ThreadReference#suspend . This is not guaranteed to be an atomic operation; if the target VM is not interrupted at the time this method is called, it is possible that new threads will be created between the time that threads are enumerated and all of them have been suspended.
 public List<ThreadGroupReference> threadGroups()
    Returns a List containing each active ThreadGroupReference in this thread group. Only the active thread groups in this immediate thread group (and not its subgroups) are returned. See java.lang.ThreadGroup for information about 'active' ThreadGroups.
 public List<ThreadReference> threads()
    Returns a List containing a ThreadReference for each live thread in this thread group. Only the live threads in this immediate thread group (and not its subgroups) are returned. A thread is alive if it has been started and has not yet been stopped.