dk.netarkivet.harvester.tools
Class CreateLogsMetadataFile

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

public class CreateLogsMetadataFile
extends ToolRunnerBase

Create a metadata arcfile for the logs and other archive-worthy job-information found in a given jobsdir. A jobsdir is only valid, if it contains a harvestInfo.xml Requires a jobid-harvestid.txt file created by CreateHarvestMappingsFromAdminData. The metadata arcfile are named: -metadata-2.arc file (note: -metadata-1.arc is already used)


Constructor Summary
CreateLogsMetadataFile()
           
 
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
 

Constructor Detail

CreateLogsMetadataFile

public CreateLogsMetadataFile()
Method Detail

main

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

Parameters:
argv - Arguments to the tool: pathToJobidHarvestid.txt jobsDir

makeMyTool

protected SimpleCmdlineTool makeMyTool()
Create the tool instance.

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