public interface AllocatedEvaluator extends AutoCloseable, Identifiable, ContextSubmittable, ContextAndTaskSubmittable, TaskSubmittable
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Puts the given file into the working directory of the Evaluator.
|
void |
addLibrary(File file)
Puts the given file into the working directory of the Evaluator and adds it to its classpath.
|
void |
close()
Releases the allocated evaluator back to the resource manager.
|
EvaluatorDescriptor |
getEvaluatorDescriptor() |
void |
setType(EvaluatorType type)
Set the type of Evaluator to be instantiated.
|
void |
submitContext(Configuration contextConfiguration)
Submit a Context.
|
void |
submitContextAndService(Configuration contextConfiguration,
Configuration serviceConfiguration)
Submit a Context and a Service Configuration.
|
void |
submitContextAndServiceAndTask(Configuration contextConfiguration,
Configuration serviceConfiguration,
Configuration taskConfiguration)
Subkit a Context with Services and a Task.
|
void |
submitContextAndTask(Configuration contextConfiguration,
Configuration taskConfiguration)
Submit a Context and a Task.
|
void |
submitTask(Configuration taskConfiguration)
Submits the given Task for execution.
|
getIdvoid addFile(File file)
file - the file to be copiedIOException - if the copy fails.void addLibrary(File file)
file - the file to be copiedIOException - if the copy fails.EvaluatorDescriptor getEvaluatorDescriptor()
void setType(EvaluatorType type)
type - void close()
close in interface AutoCloseablevoid submitTask(Configuration taskConfiguration)
submitTask in interface TaskSubmittabletaskConfiguration - the Configuration. See TaskConfiguration for details.void submitContext(Configuration contextConfiguration)
ContextSubmittablesubmitContext in interface ContextSubmittablecontextConfiguration - the Configuration of the EvaluatorContext. See ContextConfiguration for details.void submitContextAndService(Configuration contextConfiguration, Configuration serviceConfiguration)
ContextSubmittablesubmitContextAndService in interface ContextSubmittablecontextConfiguration - the Configuration of the EvaluatorContext. See ContextConfiguration for details.serviceConfiguration - the Configuration for the Services. See ServiceConfiguration for details.void submitContextAndTask(Configuration contextConfiguration, Configuration taskConfiguration)
ContextAndTaskSubmittablesubmitContextAndTask in interface ContextAndTaskSubmittablecontextConfiguration - 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)
ContextAndTaskSubmittablesubmitContextAndServiceAndTask in interface ContextAndTaskSubmittableCopyright © 2015 The Apache Software Foundation. All rights reserved.