public class RegistryIngester
extends java.lang.Object
implements gov.nasa.jpl.oodt.cas.filemgr.ingest.Ingester
Constructor and Description |
---|
RegistryIngester(java.lang.String packageGuid)
Default constructor.
|
RegistryIngester(java.lang.String packageGuid,
gov.nasa.pds.registry.client.SecurityContext securityContext,
java.lang.String user,
java.lang.String password)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BatchManager |
getBatchManager() |
gov.nasa.pds.registry.model.ExtrinsicObject |
getExtrinsic(java.net.URL registry,
java.lang.String lid,
java.lang.String version)
Gets the extrinsic object with the given LID and VID.
|
boolean |
hasAssociation(java.net.URL registry,
gov.nasa.pds.registry.model.Association association)
Determines if an association already exists in the registry.
|
boolean |
hasProduct(java.net.URL registry,
java.io.File productFile)
Method not used at this time.
|
boolean |
hasProduct(java.net.URL registry,
java.lang.String lid)
Determines whether a product is already in the registry.
|
boolean |
hasProduct(java.net.URL registry,
java.lang.String lid,
java.lang.String vid)
Determines whether a version of a product is already in the registry.
|
java.lang.String |
ingest(java.net.URL registry,
java.io.File sourceFile,
gov.nasa.pds.registry.model.Association association,
java.lang.String targetReference)
Ingests an association to the registry.
|
java.lang.String |
ingest(java.net.URL registry,
java.io.File sourceFile,
FileObject fileObject,
gov.nasa.jpl.oodt.cas.metadata.Metadata met)
Ingest the given file object to the registry.
|
java.lang.String |
ingest(java.net.URL registry,
java.io.File prodFile,
gov.nasa.jpl.oodt.cas.metadata.Metadata met)
Ingests the product into the registry.
|
java.lang.String |
ingest(java.net.URL fmUrl,
java.io.File prodFile,
gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor,
java.io.File metConfFile)
Method not implemented at this time.
|
void |
ingest(java.net.URL fmUrl,
java.util.List<java.lang.String> prodFiles,
gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor,
java.io.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(java.lang.String packageGuid)
packageGuid
- The GUID of the registry package to associate to
the products being registered.public RegistryIngester(java.lang.String packageGuid, gov.nasa.pds.registry.client.SecurityContext securityContext, java.lang.String user, java.lang.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(java.net.URL registry, java.io.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(java.net.URL registry, java.lang.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(java.net.URL registry, java.lang.String lid, java.lang.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 java.lang.String ingest(java.net.URL registry, java.io.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 java.lang.String ingest(java.net.URL registry, java.io.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 java.lang.String ingest(java.net.URL registry, java.io.File sourceFile, gov.nasa.pds.registry.model.Association association, java.lang.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(java.net.URL registry, gov.nasa.pds.registry.model.Association association) throws gov.nasa.pds.registry.exception.RegistryClientException
association
- The association.gov.nasa.pds.registry.exception.RegistryClientException
gov.nasa.pds.registry.exception.RegistryServiceException
public gov.nasa.pds.registry.model.ExtrinsicObject getExtrinsic(java.net.URL registry, java.lang.String lid, java.lang.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.gov.nasa.pds.registry.exception.RegistryClientException
gov.nasa.jpl.oodt.cas.filemgr.structs.exceptions.IngestException
public java.lang.String ingest(java.net.URL fmUrl, java.io.File prodFile, gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor, java.io.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(java.net.URL fmUrl, java.util.List<java.lang.String> prodFiles, gov.nasa.jpl.oodt.cas.metadata.MetExtractor extractor, java.io.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.