|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.syrup.workers.DefaultWorker
The default Worker implementation that executes PTasks taken from a WorkSpace.
| Constructor Summary | |
DefaultWorker()
|
|
| Method Summary | |
static void |
execute(WorkSpace sp,
PTaskTemplate template,
long totalIterations,
long pollInterval)
Executes PTasks that match a PTaskTemplate by writing them out in XML format. |
static int |
get(WorkSpace sp,
PTaskTemplate template,
java.io.OutputStream out)
Get the Contexts that match a PTaskTemplate by writing them out in XML format. |
static void |
main(java.lang.String[] args)
Start the Worker as a daemon or to execute a Syrup command using System.in and System.out for input and output. |
static int |
match(WorkSpace sp,
LogEntryTemplate template,
java.io.OutputStream out)
Return LogEntries that match a LogEntryTemplate by writing them out in XML format. |
static int |
match(WorkSpace sp,
PTaskTemplate template,
java.io.OutputStream out)
Return PTasks that match a PTaskTemplate by writing them out in XML format. |
static int |
operate(java.lang.String[] args,
java.io.InputStream i,
java.io.OutputStream o)
The main entry to start the Worker as a daemon, or to execute a Syrup command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultWorker()
| Method Detail |
public static int operate(java.lang.String[] args,
java.io.InputStream i,
java.io.OutputStream o)
throws java.lang.Exception
args - The command + qualifier.i - The InputStream to read input from.o - The OutputStream to write output to.
java.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - The command + qualifier.
java.lang.Exception
public static int match(WorkSpace sp,
PTaskTemplate template,
java.io.OutputStream out)
throws java.lang.Exception
sp - The WorkSpace to be used.template - The PTaskTemplate to be matched.out - The OutputStream to write PTasks to.
java.lang.Exception
public static int match(WorkSpace sp,
LogEntryTemplate template,
java.io.OutputStream out)
throws java.lang.Exception
sp - The WorkSpace to be used.template - The LogEntryTemplate to be matched.out - The OutputStream to write LogEntries to.
java.lang.Exception
public static int get(WorkSpace sp,
PTaskTemplate template,
java.io.OutputStream out)
throws java.lang.Exception
sp - The WorkSpace to be used.template - The PTaskTemplate to be matched.out - The OutputStream to write Contexts to.
java.lang.Exception
public static void execute(WorkSpace sp,
PTaskTemplate template,
long totalIterations,
long pollInterval)
throws java.lang.Exception
sp - The WorkSpace to be used.template - The PTaskTemplate to be matched.
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||