org.apache.commons.jelly.tags.threads
Class GroupTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.threads.GroupTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class GroupTag
extends org.apache.commons.jelly.TagSupport

Represents a group of threads. This is not the same as Java's thread groups. All of the threads in a thread group are started at the same time, not as they are defined. Use this in conjunction with other tags like join to manipulate a group of threads.

Author:
Jason Horman

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
GroupTag()
           
 
Method Summary
 void addThread(java.lang.Thread thread)
          Add a thread to the thread group list
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Child threads will add themselves and will then all be started together
 java.util.List getThreads()
          Get the list of threads in this thread group
 void setVar(java.lang.String var)
          Set the variable name to store the thread group in
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupTag

public GroupTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Child threads will add themselves and will then all be started together

Throws:
org.apache.commons.jelly.JellyTagException

addThread

public void addThread(java.lang.Thread thread)
Add a thread to the thread group list


getThreads

public java.util.List getThreads()
Get the list of threads in this thread group


setVar

public void setVar(java.lang.String var)
Set the variable name to store the thread group in



Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.