org.iids.aos.agentserver.java
Class AgentThreadGroup

java.lang.Object
  extended by java.lang.ThreadGroup
      extended by org.iids.aos.agentserver.java.AgentThreadGroup
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class AgentThreadGroup
extends java.lang.ThreadGroup

Author:
rjtimmer

Method Summary
static AgentThreadGroup getAgentThreadGroup(java.lang.Thread t)
          Obtain the AgentThreadGroup that a thread belongs to.
 void joinGroup()
          Wait for all threads to finish in this group.
 
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

joinGroup

public void joinGroup()
Wait for all threads to finish in this group.

Should only be called by Thread from parent group??


getAgentThreadGroup

public static AgentThreadGroup getAgentThreadGroup(java.lang.Thread t)
Obtain the AgentThreadGroup that a thread belongs to. This may be the threads' group or a parent thread group. This method can be used to determine whether a thread actually is part of an agent.

Parameters:
t - The thread to get the thread group from
Returns:
The agent group the thread belongs to, or null if the thread is not part of an agent.


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.