|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.threads.WaitForTag
This tag creates a dependency on another thread. If onlyWait is set
a TimeoutException
can be thrown. If status is set a RequirementException
can be thrown.
Field Summary | |
private java.util.List |
group
|
private long |
onlyWait
|
private int |
status
|
private JellyThread |
thread
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
WaitForTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
Check the requirements |
void |
setGroup(java.util.List group)
Set the group of threads to wait on |
void |
setOnlyWait(long onlyWait)
Set how long to wait for the thread to finish. |
void |
setStatus(java.lang.String status)
Wait for a specific status. |
void |
setThread(JellyThread thread)
Which thread will this tag check the status of |
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 |
Field Detail |
private int status
private JellyThread thread
private java.util.List group
private long onlyWait
Constructor Detail |
public WaitForTag()
Method Detail |
public void setStatus(java.lang.String status)
public void setThread(JellyThread thread)
public void setGroup(java.util.List group)
public void setOnlyWait(long onlyWait)
public void doTag(org.apache.commons.jelly.XMLOutput output) throws TimeoutException, RequirementException, org.apache.commons.jelly.JellyTagException
TimeoutException
- If the call to waitUntilDone(onlyWait) times out
RequirementException
- If a threads status doesn't match the setStatus() value
org.apache.commons.jelly.JellyTagException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |