public interface Task
This interface is to be implemented for Tasks.
The main entry point for a Task is the call() method inherited from
Callable
. The REEF Evaluator will call this method in order to run
the Task. The byte[] returned by it will be pushed to the Job Driver.
Modifier and Type | Method and Description |
---|---|
byte[] |
call(byte[] memento)
Called by the resourcemanager harness to execute the task.
|
byte[] call(byte[] memento) throws Exception
memento
- the memento objected passed down by the driver.Exception
- whenever the Task encounters an unsolved issue.
This Exception will be thrown at the Driver's event handler.Copyright © 2017 The Apache Software Foundation. All rights reserved.