Package dk.netarkivet.harvester.tools
Class CreateCDXMetadataFile
- java.lang.Object
-
- dk.netarkivet.common.tools.ToolRunnerBase
-
- 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 selectedUsage: 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.
-
-
Constructor Summary
Constructors Constructor Description CreateCDXMetadataFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] argv)
Main method.protected SimpleCmdlineTool
makeMyTool()
Create the tool instance.-
Methods inherited from class dk.netarkivet.common.tools.ToolRunnerBase
runTheTool, showMessage
-
-
-
-
Field Detail
-
ARCMODE
public static final String ARCMODE
- See Also:
- Constant Field Values
-
WARCMODE
public static final String WARCMODE
- See Also:
- Constant Field Values
-
usageString
public static final String usageString
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(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 classToolRunnerBase
- Returns:
- A new tool object.
-
-