|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides a client API to store and manage executions of PTasks. This is the main entry point for all functionality provided by Syrup and used by Workers.
| Field Summary | |
static java.lang.String |
COPYRIGHT
|
| Method Summary | |
PTask |
execute(PTask task)
Executes a single Task. |
Data |
get_out_1()
Get the first output. |
Data |
get_out_2()
Get the second output. |
Context[] |
get(PTaskTemplate template)
Get the Contexts of PTasks that match the PTaskTemplate. |
LogEntry[] |
match(LogEntryTemplate template)
|
PTask[] |
match(PTaskTemplate template)
Get PTasks matching the PTaskTemplate. |
PTask[] |
remove(PTask[] tasks)
Remove PTasks that are done. |
void |
reset()
Resets the WorkSpace to the initial state. |
void |
set_in_1(Data data)
Set the first input. |
void |
set_in_2(Data data)
Set the second input. |
PTask |
stop(PTask task)
Stop the possible non-progressing execution of a PTask. |
| Field Detail |
public static final java.lang.String COPYRIGHT
| Method Detail |
public void reset()
throws java.lang.Exception
java.lang.Exception
public void set_in_1(Data data)
throws java.lang.Exception
data - The Data that is set on the first input.
java.lang.Exception
public void set_in_2(Data data)
throws java.lang.Exception
data - The Data that is set on the second input.
java.lang.Exception
public Data get_out_1()
throws java.lang.Exception
java.lang.Exception
public Data get_out_2()
throws java.lang.Exception
java.lang.Exception
public PTask[] match(PTaskTemplate template)
throws java.lang.Exception
template - The PTaskTemplate to be matched.
java.lang.Exception
public Context[] get(PTaskTemplate template)
throws java.lang.Exception
template - The PTaskTemplate to be matched.
java.lang.Exception
public PTask execute(PTask task)
throws java.lang.Exception
task - The PTask to be executed.
java.lang.Exception
public PTask stop(PTask task)
throws java.lang.Exception
task - The PTask to be stopped.
java.lang.Exception
public PTask[] remove(PTask[] tasks)
throws java.lang.Exception
tasks - The array of PTasks to remove.
java.lang.Exception
public LogEntry[] match(LogEntryTemplate template)
throws java.lang.Exception
template - The LogEntryTemplate to be matched.
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||