public class SearchIngester extends Object implements gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
Constructor and Description |
---|
SearchIngester()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasProduct(URL registry,
File productFile)
Method not used at this time.
|
boolean |
hasProduct(URL registry,
String lid)
Determines whether a product is already in the registry.
|
boolean |
hasProduct(URL registry,
String lid,
String vid)
Determines whether a version of a product is already in the registry.
|
String |
ingest(URL searchUrl,
File prodFile,
gov.nasa.jpl.oodt.cas.metadata.Metadata met)
Ingests the product into the registry.
|
String |
ingest(URL fmUrl,
File prodFile,
gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor,
File metConfFile)
Method not implemented at this time.
|
void |
ingest(URL fmUrl,
List<String> prodFiles,
gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor,
File metConfFile)
Method not implemented at this time.
|
public boolean hasProduct(URL registry, File productFile) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
hasProduct
in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
public boolean hasProduct(URL registry, String lid) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
hasProduct
in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
registry
- The URL to the registry service.lid
- The PDS4 logical identifier.gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
- exception ignored.public boolean hasProduct(URL registry, String lid, String vid) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
registry
- The URL to the registry service.lid
- The PDS4 logical identifier.vid
- The version of the product.gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
- If an error occurred while talking to the ingester.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
ingest
in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
searchUrl
- The URL to the Search Service.prodFile
- The PDS4 product file.met
- The metadata to register.gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
- If an error occurred while ingesting the product.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
ingest
in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
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
ingest
in interface gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
Copyright © 2019. All rights reserved.