public interface ContextAndTaskSubmittable
Modifier and Type | Method and Description |
---|---|
void |
submitContextAndServiceAndTask(Configuration contextConfiguration,
Configuration serviceConfiguration,
Configuration taskConfiguration)
Submit a Context with Services and a Task.
|
void |
submitContextAndTask(Configuration contextConfiguration,
Configuration taskConfiguration)
Submit a Context and a Task.
|
void submitContextAndTask(Configuration contextConfiguration, Configuration taskConfiguration)
The semantics of this call are the same as first submitting the context and then, on the fired ActiveContext event to submit the Task. The performance of this will be better, though as it potentially saves some roundtrips on the network.
REEF will not fire an ActiveContext as a result of this. Instead, it will fire a TaskRunning event.
contextConfiguration
- the Configuration of the EvaluatorContext. See ContextConfiguration for details.taskConfiguration
- the Configuration of the Task. See TaskConfiguration for details.void submitContextAndServiceAndTask(Configuration contextConfiguration, Configuration serviceConfiguration, Configuration taskConfiguration)
The semantics of this call are the same as first submitting the context and services and then, on the fired ActiveContext event to submit the Task. The performance of this will be better, though as it potentially saves some roundtrips on the network.
REEF will not fire an ActiveContext as a result of this. Instead, it will fire a TaskRunning event.
contextConfiguration
- serviceConfiguration
- taskConfiguration
- Copyright © 2016 The Apache Software Foundation. All rights reserved.