Class SearchIngester
- java.lang.Object
- 
- gov.nasa.pds.harvest.search.ingest.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 SummaryConstructors Constructor Description SearchIngester()Default constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasProduct(URL registry, File productFile)Method not used at this time.booleanhasProduct(URL registry, String lid)Determines whether a product is already in the registry.booleanhasProduct(URL registry, String lid, String vid)Determines whether a version of a product is already in the registry.Stringingest(URL searchUrl, File prodFile, gov.nasa.jpl.oodt.cas.metadata.Metadata met)Ingests the product into the registry.Stringingest(URL fmUrl, File prodFile, gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor, File metConfFile)Method not implemented at this time.voidingest(URL fmUrl, List<String> prodFiles, gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor, File metConfFile)Method not implemented at this time.
 
- 
- 
- 
Method Detail- 
hasProductpublic boolean hasProduct(URL registry, File productFile) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException Method not used at this time.- Specified by:
- hasProductin interface- gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
- Throws:
- gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
 
 - 
hasProductpublic 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:
- hasProductin 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.
 
 - 
hasProductpublic 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.
 
 - 
ingestpublic 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:
- ingestin 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.
 
 - 
ingestpublic 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:
- ingestin interface- gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
- Throws:
- gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
 
 - 
ingestpublic 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:
- ingestin interface- gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
- Throws:
- gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
 
 
- 
 
-