dk.netarkivet.harvester.harvesting
Class CollectionPrefixNamingConvention

java.lang.Object
  extended by dk.netarkivet.harvester.harvesting.CollectionPrefixNamingConvention
All Implemented Interfaces:
ArchiveFileNaming

public class CollectionPrefixNamingConvention
extends java.lang.Object
implements ArchiveFileNaming

Implements another way of prefixing archive files in Netarchivesuite. I.e. collectionName-jobid-harvestid


Constructor Summary
CollectionPrefixNamingConvention()
           
 
Method Summary
 java.lang.String getPrefix(Job theJob)
          Make a prefix to be used by Heritrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionPrefixNamingConvention

public CollectionPrefixNamingConvention()
Method Detail

getPrefix

public java.lang.String getPrefix(Job theJob)
Description copied from interface: ArchiveFileNaming
Make a prefix to be used by Heritrix. It is optional what information from the harvestjob if any is going to be part of the prefix.

Specified by:
getPrefix in interface ArchiveFileNaming
Parameters:
theJob - the harvestJob
Returns:
a prefix to be used by Heritrix