|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.citool.ingestor.CatalogRegistryIngester
public class CatalogRegistryIngester
Field Summary | |
---|---|
static int |
failCount
|
static int |
fileObjCount
|
static int |
registryCount
|
static String |
registryPackageName
|
static int |
storageCount
|
Constructor Summary | |
---|---|
CatalogRegistryIngester(String registryURL)
Constructor |
|
CatalogRegistryIngester(String registryURL,
gov.nasa.pds.registry.client.SecurityContext securityContext,
String username,
String password)
Constructor with security context |
Method Summary | |
---|---|
boolean |
associationExists(gov.nasa.pds.registry.model.Association association)
Determines whether an association is already in the registry |
void |
createRegistryPackage()
|
gov.nasa.pds.registry.model.ExtrinsicObject |
getExtrinsic(String lid)
|
gov.nasa.pds.registry.model.ExtrinsicObject |
getExtrinsic(String lid,
String version)
Retrieve an extrinsic object from the registry |
StorageIngester |
getStorageIngester()
Return storage ingester instance |
String |
ingest(CatalogObject catObj)
Method to ingest given catalog object to the registry service It calls ingestExtrinsicObject() for the product registry. |
String |
ingestExtrinsicObject(CatalogObject catObj)
Ingest an extrinsic object to the registry service |
int |
ingestHKExtrinsicObject(CatalogObject catObj)
Ingest housekeeping extrinsic object(s) to the registry service |
boolean |
productExists(String lid)
Determines whether a product is already in the registry. |
void |
publishAssociation(CatalogObject catObj,
Reference ref)
Publish assocation with one reference info |
void |
publishAssociations(CatalogObject catObj)
Method to publish associations with given catalog object |
void |
setArchiveStatus(String status)
|
void |
setStorageService(String storageURL,
String productName)
Set parameters for the storage service instance |
void |
setTransportURL(String transportURL)
Set URL of the transport service |
void |
updateProduct(CatalogObject catObj,
Map<String,List<String>> refs)
Add reference information as slot values then, update the registered product |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int fileObjCount
public static int storageCount
public static int registryCount
public static int failCount
public static String registryPackageName
Constructor Detail |
---|
public CatalogRegistryIngester(String registryURL)
registryURL
- The URL to the registry servicepublic CatalogRegistryIngester(String registryURL, gov.nasa.pds.registry.client.SecurityContext securityContext, String username, String password)
registryURL
- The URL to the registry servicesecurityContext
- context required for the security serviceusername
- Name of the userpassword
- PasswordMethod Detail |
---|
public StorageIngester getStorageIngester()
public void setStorageService(String storageURL, String productName) throws org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
storageURL
- the URL of the storage serviceproductName
- Product name used in the storage service
org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
public void setTransportURL(String transportURL)
transportURL
- the URL of the transport servicepublic void setArchiveStatus(String status)
public String ingest(CatalogObject catObj)
catObj
- a Catalog Object instance
public String ingestExtrinsicObject(CatalogObject catObj)
catObj
- a catalog object
public int ingestHKExtrinsicObject(CatalogObject catObj)
catObj
- a catalog object
public void updateProduct(CatalogObject catObj, Map<String,List<String>> refs)
catObj
- a CatalogObject of the registered extrinsic objectrefs
- Hashmap that holds reference informationpublic void publishAssociations(CatalogObject catObj)
catObj
- a catalog objectpublic void publishAssociation(CatalogObject catObj, Reference ref)
catObj
- an instance of CatalogObjectref
- an instance of Referencepublic boolean associationExists(gov.nasa.pds.registry.model.Association association) throws gov.nasa.pds.registry.exception.RegistryClientException
assocation
- The association object
gov.nasa.pds.registry.exception.RegistryClientException
- exception ignored.public boolean productExists(String lid) throws gov.nasa.pds.registry.exception.RegistryClientException
lid
- The PDS4 logical identifier.
gov.nasa.pds.registry.exception.RegistryClientException
- exception ignored.public gov.nasa.pds.registry.model.ExtrinsicObject getExtrinsic(String lid)
public gov.nasa.pds.registry.model.ExtrinsicObject getExtrinsic(String lid, String version)
lid
- The PDS4 logical identifierversion
- The versionName
public void createRegistryPackage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |