Class CollectionPrefixNamingConvention

  • All Implemented Interfaces:
    ArchiveFileNaming

    public class CollectionPrefixNamingConvention
    extends Object
    implements ArchiveFileNaming
    Implements another way of prefixing archive files in Netarchivesuite. I.e. collectionName-jobid-harvestid
    • Constructor Detail

      • CollectionPrefixNamingConvention

        public CollectionPrefixNamingConvention()
    • Method Detail

      • getPrefix

        public 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