public class DefaultHadoopTaskExecutor extends Object implements TaskExecutor
HadoopTaskInfo
via fork/exec.Constructor and Description |
---|
DefaultHadoopTaskExecutor() |
Modifier and Type | Method and Description |
---|---|
static void |
checkSupported(TaskExecutionContext context,
HadoopTaskInfo task)
Checks if this executor can execute the given task, or raise an exception.
|
void |
execute(TaskExecutionContext context,
TaskInfo task)
Executes a task.
|
boolean |
isSupported(TaskExecutionContext context,
TaskInfo task)
Returns whether this executor supports executing the target task.
|
public boolean isSupported(TaskExecutionContext context, TaskInfo task)
TaskExecutor
isSupported
in interface TaskExecutor
context
- the current contexttask
- the target tasktrue
if this supports the target task, otherwise false
public void execute(TaskExecutionContext context, TaskInfo task) throws IOException, InterruptedException
TaskExecutor
execute
in interface TaskExecutor
context
- the current contexttask
- the target taskIOException
- if task execution was failedInterruptedException
- if interrupted while executing the taskpublic static void checkSupported(TaskExecutionContext context, HadoopTaskInfo task)
context
- the current contexttask
- the target taskCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.