public class CatalogRegistryIngester extends Object
Modifier and Type | Field and Description |
---|---|
static int |
failCount |
static int |
fileObjCount |
static int |
registryCount |
static String |
registryPackageName |
static int |
storageCount |
Constructor and Description |
---|
CatalogRegistryIngester(String registryURL)
Constructor
|
CatalogRegistryIngester(String registryURL,
SecurityContext securityContext,
String username,
String password)
Constructor with security context
|
Modifier and Type | Method and Description |
---|---|
boolean |
associationExists(Association association)
Determines whether an association is already in the registry
|
void |
createRegistryPackage() |
ExtrinsicObject |
getExtrinsic(String lid) |
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 |
setVolumeLid(String lid) |
void |
updateProduct(CatalogObject catObj,
Map<String,List<String>> refs)
Add reference information as slot values
then, update the registered product
|
public static int fileObjCount
public static int storageCount
public static int registryCount
public static int failCount
public static String registryPackageName
public CatalogRegistryIngester(String registryURL)
registryURL
- The URL to the registry servicepublic CatalogRegistryIngester(String registryURL, SecurityContext securityContext, String username, String password)
registryURL
- The URL to the registry servicesecurityContext
- context required for the security serviceusername
- Name of the userpassword
- Passwordpublic 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 serviceorg.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
public void setTransportURL(String transportURL)
transportURL
- the URL of the transport servicepublic void setArchiveStatus(String status)
public void setVolumeLid(String lid)
public String ingest(CatalogObject catObj)
catObj
- a Catalog Object instancepublic String ingestExtrinsicObject(CatalogObject catObj)
catObj
- a catalog objectpublic int ingestHKExtrinsicObject(CatalogObject catObj)
catObj
- a catalog objectpublic 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(Association association) throws RegistryClientException
assocation
- The association objectRegistryClientException
- exception ignored.public boolean productExists(String lid) throws RegistryClientException
lid
- The PDS4 logical identifier.RegistryClientException
- exception ignored.public ExtrinsicObject getExtrinsic(String lid)
public ExtrinsicObject getExtrinsic(String lid, String version)
lid
- The PDS4 logical identifierversion
- The versionNamepublic void createRegistryPackage()
Copyright © 2010–2017 Planetary Data System. All rights reserved.