Class PDS3FileCrawler

  • All Implemented Interfaces:
    gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType, gov.nasa.jpl.oodt.cas.filemgr.metadata.CoreMetKeys

    public class PDS3FileCrawler
    extends PDS3ProductCrawler
    Crawler class intended to be used for registering PDS3 files as Product_File_Repository products.
    Author:
    mcayanan
    • Constructor Detail

      • PDS3FileCrawler

        public PDS3FileCrawler()
    • Method Detail

      • getMetadataForProduct

        protected gov.nasa.jpl.oodt.cas.metadata.Metadata getMetadataForProduct​(File product)
        Description copied from class: PDS3ProductCrawler
        Extracts metadata from the given product.
        Overrides:
        getMetadataForProduct in class PDS3ProductCrawler
        Parameters:
        product - A PDS file.
        Returns:
        A Metadata object, which holds metadata from the product.
      • passesPreconditions

        protected boolean passesPreconditions​(File product)
        Description copied from class: PDS3ProductCrawler
        Determines whether the supplied file passes the necessary pre-conditions for the file to be registered.
        Overrides:
        passesPreconditions in class PDS3ProductCrawler
        Parameters:
        product - A file.
        Returns:
        true if the file passes.
      • setGenerateChecksums

        public void setGenerateChecksums​(boolean value)
        Set the flag for checksum generation.
        Parameters:
        value - 'true' to turn on, 'false' to turn off.
      • setChecksumManifest

        public void setChecksumManifest​(Map<File,​String> manifest)
        Set the map to represent the checksum manifest file.
        Parameters:
        manifest - A mapping of file objects to checksums.