Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • -N<className> is the name of the primary class to be loaded and executed as a FileBatchJob/ARCBatchJob implementation
  • -J<jarfile> is on or more files containing all the classes needed by the primary class. The files must be separated by commas.
    To specify which files the batch program must be executed on, the following parameters may be set optionally:
  • -B<replica> is the name of the bitarchive replica which the batchjob must be executed on. The default is the name of the bitarchive replica identified by the setting settings.common.useReplicaId. Note that it is the replica name and not replica id which are refered to here. Also it cannot be the name of a checksum replica, since batchjob can only be executed on bitarchive replicas.
  • -R<regexp> is a regular expression that will be matched against file names in the archive. The default is *.* which means it will be executed on all files in the bitarchive replica.
    To specify output files from the batch program, the following parameters may be set optionally

...

which will take in lib/dk.netarkivet.archive.jar in the class path and execute the general NetarchiveSuite program dk.netarkivet.archive.tools.RunBatch based on settings from file /home/user/conf/settings_ArcRepositoryApplication.xml. This will result in running the batch program FindMime.class* on the bitarchive replica named *ReplicaOne, but only on files with names matching the pattern 10-.arc*. The results written by the batch program is concatenated and placed in the output file named resfile.

...