Class SearchIngester

  • All Implemented Interfaces:
    gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester

    public class SearchIngester
    extends Object
    implements gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
    Class that supports ingestion of PDS4 product labels as a blob into the PDS Search Service.
    Author:
    mcayanan
    • Constructor Detail

      • SearchIngester

        public SearchIngester()
                       throws Exception
        Default constructor.
        Throws:
        Exception
    • Method Detail

      • hasProduct

        public boolean hasProduct​(URL registry,
                                  File productFile)
                           throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
        Method not used at this time.
        Specified by:
        hasProduct in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
        Throws:
        gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
      • hasProduct

        public boolean hasProduct​(URL registry,
                                  String lid)
                           throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
        Determines whether a product is already in the registry.
        Specified by:
        hasProduct in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
        Parameters:
        registry - The URL to the registry service.
        lid - The PDS4 logical identifier.
        Returns:
        'true' if the logical identifier was found in the registry. 'false' otherwise.
        Throws:
        gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException - exception ignored.
      • hasProduct

        public boolean hasProduct​(URL registry,
                                  String lid,
                                  String vid)
                           throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
        Determines whether a version of a product is already in the registry.
        Parameters:
        registry - The URL to the registry service.
        lid - The PDS4 logical identifier.
        vid - The version of the product.
        Returns:
        'true' if the logical identifier and version was found in the registry.
        Throws:
        gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException - If an error occurred while talking to the ingester.
      • ingest

        public String ingest​(URL searchUrl,
                             File prodFile,
                             gov.nasa.jpl.oodt.cas.metadata.Metadata met)
                      throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
        Ingests the product into the registry.
        Specified by:
        ingest in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
        Parameters:
        searchUrl - The URL to the Search Service.
        prodFile - The PDS4 product file.
        met - The metadata to register.
        Returns:
        The URL of the registered product.
        Throws:
        gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException - If an error occurred while ingesting the product.
      • ingest

        public String ingest​(URL fmUrl,
                             File prodFile,
                             gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor,
                             File metConfFile)
                      throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
        Method not implemented at this time.
        Specified by:
        ingest in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
        Throws:
        gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
      • ingest

        public void ingest​(URL fmUrl,
                           List<String> prodFiles,
                           gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor,
                           File metConfFile)
                    throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
        Method not implemented at this time.
        Specified by:
        ingest in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
        Throws:
        gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException