Package gov.nasa.pds.citool.ingestor
Class CatalogVolumeIngester
- java.lang.Object
-
- gov.nasa.pds.citool.ingestor.CatalogVolumeIngester
-
public class CatalogVolumeIngester extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
failCount
static int
fileObjCount
static int
registryCount
boolean
targetAvailable
-
Constructor Summary
Constructors Constructor Description CatalogVolumeIngester()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCatalogObject(CatalogObject catObj)
String
createRegistryObject(CatalogObject catObj)
Ingest an extrinsic object to the registry serviceString
getArchiveStatus()
List<CatalogObject>
getCatalogObjects()
String
getVolumeId()
void
ingest(CatalogObject catObj)
Method to ingest given catalog object to the registry service It calls ingestExtrinsicObject() for the product registry.boolean
labelExists(String filename)
void
publishObject(CatalogObject obj)
void
setArchiveStatus(String status)
void
setProductReferences(List<CatalogObject> catObjs, CatalogObject catObj, Map<String,List<String>> refs)
Add reference information as slot values then, update the registered productvoid
setTargetAvailable(boolean b)
void
setVolumeId(String id)
-
-
-
Method Detail
-
addCatalogObject
public void addCatalogObject(CatalogObject catObj)
-
getCatalogObjects
public List<CatalogObject> getCatalogObjects()
-
labelExists
public boolean labelExists(String filename)
-
setTargetAvailable
public void setTargetAvailable(boolean b)
-
getArchiveStatus
public String getArchiveStatus()
-
setArchiveStatus
public void setArchiveStatus(String status)
-
getVolumeId
public String getVolumeId()
-
setVolumeId
public void setVolumeId(String id)
-
ingest
public void ingest(CatalogObject catObj)
Method to ingest given catalog object to the registry service It calls ingestExtrinsicObject() for the product registry. Then, it calls ingestFileObject() for the corresponding file object registry.- Parameters:
catObj
- a Catalog Object instance
-
createRegistryObject
public String createRegistryObject(CatalogObject catObj)
Ingest an extrinsic object to the registry service- Parameters:
catObj
- a catalog object- Returns:
- the guid of the registered extrinsic object
-
setProductReferences
public void setProductReferences(List<CatalogObject> catObjs, CatalogObject catObj, Map<String,List<String>> refs)
Add reference information as slot values then, update the registered product- Parameters:
catObj
- a CatalogObject of the registered extrinsic objectrefs
- Hashmap that holds reference information
-
publishObject
public void publishObject(CatalogObject obj)
-
-