TaskExecutor
@Deprecated public abstract class JobExecutor extends Object
Constructor and Description |
---|
JobExecutor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(TestExecutionPlan.Command command,
Map<String,String> environmentVariables)
Deprecated.
Executes a command job.
|
abstract void |
execute(TestExecutionPlan.Job job,
Map<String,String> environmentVariables)
Deprecated.
Executes a Hadoop job.
|
void |
validateEnvironment()
Deprecated.
Validates the target job execution environment.
|
void |
validatePlan(TestExecutionPlan plan)
Deprecated.
Validates the target test execution plan for this executor.
|
public void validateEnvironment()
AssertionError
- if the current execution environment is invalidpublic void validatePlan(TestExecutionPlan plan)
plan
- the target execution planAssertionError
- if the target plan is invalid for the environmentpublic abstract void execute(TestExecutionPlan.Job job, Map<String,String> environmentVariables) throws IOException
job
- the job descriptorenvironmentVariables
- recommended environment variablesIOException
- if failed to execute the jobpublic abstract void execute(TestExecutionPlan.Command command, Map<String,String> environmentVariables) throws IOException
command
- the command descriptorenvironmentVariables
- recommended environment variablesIOException
- if failed to execute the jobCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.