|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.harvest.ingest.RegistryIngester
public class RegistryIngester
Class that supports ingestion of PDS4 products into the PDS registry.
Constructor Summary | |
---|---|
RegistryIngester()
Default constructor. |
|
RegistryIngester(String user,
String token)
Constructor. |
Method Summary | |
---|---|
boolean |
hasProduct(URL registry,
File prodFile)
Method not used at this time. |
boolean |
hasProduct(URL registry,
String productID)
Determines whether a product is already in the registry. |
boolean |
hasProduct(URL registry,
String productID,
String productVersion)
Determines whether a version of a product is already in the registry. |
String |
ingest(URL registry,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryIngester()
public RegistryIngester(String user, String token)
user
- An authorized user.token
- The security token that allows the authorized user to
ingest products into the registry.Method Detail |
---|
public boolean hasProduct(URL registry, File prodFile) 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 productID) 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.productID
- The PDS4 logical identifier.
gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
- If an error occurred while talking to the
ingester.public boolean hasProduct(URL registry, String productID, String productVersion) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.CatalogException
registry
- The URL to the registry service.productID
- The PDS4 logical identifier.productVersion
- 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 registry, 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
registry
- The URL to the registry 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |