public class RunBatch extends ToolRunnerBase
Usage: java dk.netarkivet.archive.tools.RunBatch with arguments as defined in local class BatchParameters
where:
-J<jarfile> is a file containing all the classes needed by a BatchJob
-C<classfile> is a file containing a FileBatchJob implementation
-R<regexp> is a regular expression that will be matched against file names in the archive, by default .*
-B<replica> is the name of the bitarchive replica this should be run on, by default taken from settings.
-O<outputfile< is a file where the output from the batch job will be written. By default, it goes to stdout.
-E<errorFile> is a file where the errors from the batch job will be written. By default, it goes to stderr.
-N<className> is the name of the primary class to be loaded when doing a LoadableJarBatchJob
-A<Arguments> The arguments for the batchjob, separated by '##', e.g. -Aarg1##arg2##...
Examples:
java dk.netarkivet.archive.tools.RunBatch -CFindMime.class \ -R10-*.arc -BReplicaOne -Omimes
java dk.netarkivet.archive.tools.RunBatch -JFindMime.jar -NFindMime \ -R10-*.arc -BReplicaOne -Omimes
Note that you probably want to set the application instance id setting (
CommonSettings#APPLICATION_INSTANCE_ID) to something other than its default value to avoid clashing with
other channel listeners.
Constructor and Description |
---|
RunBatch() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argv)
Main method.
|
protected SimpleCmdlineTool |
makeMyTool()
Create an instance of the actual RunBatchTool.
|
runTheTool, showMessage
public RunBatch()
public static void main(String[] argv)
argv
- command line parameters as defined in local class BatchParameters required: The name of a class-file
containing an implementation of FileBatchJob Name of jar file which includes the class file, and the classNameprotected SimpleCmdlineTool makeMyTool()
makeMyTool
in class ToolRunnerBase
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.