dk.netarkivet.harvester.tools
Class CreateCDXMetadataFile

java.lang.Object
  extended by dk.netarkivet.common.tools.ToolRunnerBase
      extended by dk.netarkivet.harvester.tools.CreateCDXMetadataFile

public class CreateCDXMetadataFile
extends ToolRunnerBase

This tool creates a CDX metadata file for a given job's jobID and harvestPrefix by running a batch job on the bitarchive and processing the results to give a metadata file. Use option -w to select WARC output, and -a to select ARC output: If no option available, then warc mode is selected Usage: java dk.netarkivet.harvester.tools.CreateCDXMetadataFile -w --jobID 2 --harvestID 5 --harvestnamePrefix 2-1 Usage: java dk.netarkivet.harvester.tools.CreateCDXMetadataFile -a --jobID 2 --harvestID 5 --harvestnamePrefix 2-1 Usage: java dk.netarkivet.harvester.tools.CreateCDXMetadataFile --jobID 2 --harvestID 5 --harvestnamePrefix 2-1 The CDX records is slightly different from the one produced normally. As we are not able to extract the timestamp, and harvestID from the (W) arcfilenames, this information is not part of the CXDURI.


Field Summary
static java.lang.String ARCMODE
           
static java.lang.String usageString
           
static java.lang.String WARCMODE
           
 
Constructor Summary
CreateCDXMetadataFile()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Main method.
protected  SimpleCmdlineTool makeMyTool()
          Create the tool instance.
 
Methods inherited from class dk.netarkivet.common.tools.ToolRunnerBase
runTheTool, showMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARCMODE

public static final java.lang.String ARCMODE
See Also:
Constant Field Values

WARCMODE

public static final java.lang.String WARCMODE
See Also:
Constant Field Values

usageString

public static final java.lang.String usageString
See Also:
Constant Field Values
Constructor Detail

CreateCDXMetadataFile

public CreateCDXMetadataFile()
Method Detail

main

public static void main(java.lang.String[] argv)
Main method. Creates and runs the tool object responsible for batching over the bitarchive and creating a metadata file for a job.

Parameters:
argv - Arguments to the tool: jobID harvestnamePrefix

makeMyTool

protected SimpleCmdlineTool makeMyTool()
Create the tool instance.

Specified by:
makeMyTool in class ToolRunnerBase
Returns:
A new tool object.