public class DataflowWorkerHarness extends Object
The worker fetches WorkItem units from the Dataflow Service. When the work is complete, the program sends results via the worker service API.
Returns status code 0 on successful completion, 1 on any uncaught failures.
TODO: add support for VM initialization via config. During initialization, we should take a configuration that specifies an initialization function, allowing user code to run on VM startup.
| Constructor and Description |
|---|
DataflowWorkerHarness() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Fetches and processes work units from the Dataflow service.
|