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)
TaskExecutorisSupported in interface TaskExecutorcontext - the current contexttask - the target tasktrue if this supports the target task, otherwise falsepublic void execute(TaskExecutionContext context, TaskInfo task) throws IOException, InterruptedException
TaskExecutorexecute in interface TaskExecutorcontext - 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–2018 Asakusa Framework Team. All rights reserved.