execute
public void execute(WorkerEnvironment workerEnvironment)
This is the main point of entry for Twister2 jobs.
Every job should implement this interface.
When a job is submitted, a class implementing this interface gets instantiated
and executed by Twister2.
As the first thing in the execute method,
users are expected to initialize the proper environment object:
for batch jobs: BatchTSetEnvironment
for streaming jobs: StreamingTSetEnvironment
- Specified by:
execute
in interface Twister2Worker