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 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CreateCDXMetadataFile
public CreateCDXMetadataFile()
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.