public class RegistryIngester extends Object implements gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
Constructor and Description |
---|
RegistryIngester(String packageGuid)
Default constructor.
|
RegistryIngester(String packageGuid,
SecurityContext securityContext,
String user,
String password)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BatchManager |
getBatchManager() |
ExtrinsicObject |
getExtrinsic(URL registry,
String lid,
String version)
Gets the extrinsic object with the given LID and VID.
|
boolean |
hasAssociation(URL registry,
Association association)
Determines if an association already exists in the registry.
|
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 registry,
File sourceFile,
Association association,
String targetReference)
Ingests an association to the registry.
|
String |
ingest(URL registry,
File sourceFile,
FileObject fileObject,
gov.nasa.jpl.oodt.cas.metadata.Metadata met)
Ingest the given file object to 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.
|
void |
setBatchMode(int value)
Sets the number of concurrent registrations to make
during batch mode.
|
public RegistryIngester(String packageGuid)
packageGuid
- The GUID of the registry package to associate to
the products being registered.public RegistryIngester(String packageGuid, SecurityContext securityContext, String user, String password)
packageGuid
- The GUID of the registry package to associate to
the products being registered.securityContext
- An object containing keystore information.user
- An authorized user.password
- The password associated with the user.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 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 registry, File sourceFile, FileObject fileObject, gov.nasa.jpl.oodt.cas.metadata.Metadata met) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
registry
- The url of the registry.sourceFile
- The source file of the file object.fileObject
- The file object to register.met
- The file object metadata.gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
public String ingest(URL registry, File sourceFile, Association association, String targetReference) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
registry
- The url of the registry.sourceFile
- The source file.association
- The association to register.targetReference
- The lidvid of the target reference.gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
- If an error occurred while ingesting
the association.public boolean hasAssociation(URL registry, Association association) throws RegistryClientException
association
- The association.RegistryClientException
RegistryServiceException
public ExtrinsicObject getExtrinsic(URL registry, String lid, String version) throws gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
registry
- The registry url.lid
- The LID to look up in the registry.version
- The version of the product to look up.RegistryClientException
gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
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
public void setBatchMode(int value)
value
- An integer value.public BatchManager getBatchManager()
Copyright © 2010–2018 Planetary Data System. All rights reserved.