|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.cog.karajan.KarajanWorkflow
public class KarajanWorkflow
A basic interface to embedding workflows from Java
| Constructor Summary | |
|---|---|
KarajanWorkflow()
Default constructor |
|
| Method Summary | |
|---|---|
Throwable |
getFailure()
Get the throwable that caused the workflow to fail. |
boolean |
isDone()
Checks if the workflow has finished executing |
boolean |
isFailed()
Check if the workflow has failed |
void |
setSpecification(File spec)
Sets and parses the workflow contained in the given file |
void |
setSpecification(String spec)
Sets and parses the workflow contained in the given argument |
void |
start()
Starts the workflow |
void |
waitFor()
Waits for the workflow to finish |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KarajanWorkflow()
| Method Detail |
|---|
public void setSpecification(String spec)
throws SpecificationException
SpecificationException - if there is something wrong with the specification
public void setSpecification(File spec)
throws SpecificationException,
IOException
IOException - if an error occurs while reading the file
SpecificationException - if there is something wrong with the specification
public void start()
throws IllegalStateException,
SpecificationException
SpecificationException - if no specification was set
IllegaleStateException - if this workflow was started before
IllegalStateException
public void waitFor()
throws IllegalStateException,
InterruptedException
IllegalStateException - if the workflow was never started
InterruptedExceptionpublic boolean isDone()
public boolean isFailed()
public Throwable getFailure()
null if the workflow has not failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||