public final class BatchTestRunner extends Object
BatchTestTool
Constructor and Description |
---|
BatchTestRunner(Class<? extends BatchDescription> batchClass)
Creates a new instance.
|
BatchTestRunner(String batchId)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
execute()
Run Asakusa batch application.
|
static int |
execute(String batchId)
Run Asakusa batch application without any batch arguments.
|
static int |
execute(String[] args)
Program entry.
|
static int |
execute(String batchId,
Map<String,String> batchArguments)
Run Asakusa batch application.
|
static void |
main(String[] args)
Program entry.
|
BatchTestRunner |
withApplications(File path)
Sets the Asakusa batch applications installation path.
|
BatchTestRunner |
withArgument(String name,
String value)
Sets a batch argument for this runner.
|
BatchTestRunner |
withArguments(Map<String,String> arguments)
Sets batch arguments for this runner.
|
BatchTestRunner |
withFramework(File path)
Sets the Asakusa Framework installation path.
|
BatchTestRunner |
withProperties(Map<String,String> properties)
Sets Hadoop properties for this runner.
|
BatchTestRunner |
withProperty(String key,
String value)
Sets a Hadoop property for this runner.
|
public BatchTestRunner(Class<? extends BatchDescription> batchClass)
batchClass
- the target batch classpublic BatchTestRunner(String batchId)
batchId
- the target batch IDpublic BatchTestRunner withFramework(File path)
$ASAKUSA_HOME
.path
- the framework installation pathpublic BatchTestRunner withApplications(File path)
$ASAKUSA_HOME/batchapps
.path
- the batch applications installation pathpublic BatchTestRunner withArgument(String name, String value)
name
- the argument namevalue
- the argument valuepublic BatchTestRunner withArguments(Map<String,String> arguments)
arguments
- the arguments name value mappublic BatchTestRunner withProperty(String key, String value)
key
- the property keyvalue
- the property valuepublic BatchTestRunner withProperties(Map<String,String> properties)
properties
- the properties key value mappublic int execute()
public static void main(String[] args)
args
- program argumentspublic static int execute(String[] args)
args
- program argumentsexecute(String, Map)
public static int execute(String batchId, Map<String,String> batchArguments)
batchId
- the target batch IDbatchArguments
- the batch arguments (nullable)public static int execute(String batchId)
batchId
- the target batch IDexecute(String, Map)
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.