public class BatchManager extends Object
Constructor and Description |
---|
BatchManager(gov.nasa.pds.registry.client.RegistryClient client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cache(gov.nasa.pds.registry.model.RegistryObject object,
String datasetId,
boolean version)
Caches the given RegistryObject for future registration.
|
int |
getCacheSize() |
gov.nasa.pds.registry.client.RegistryClient |
getRegistryClient() |
void |
ingest()
Ingests all products that have been cached.
|
public BatchManager(gov.nasa.pds.registry.client.RegistryClient client)
client
- A RegistryClient object.public void cache(gov.nasa.pds.registry.model.RegistryObject object, String datasetId, boolean version)
object
- The RegistryObject to ingest.datasetId
- The datasetId associated with the given RegistryObject.version
- Flag to indicate whether to version the object.public int getCacheSize()
public gov.nasa.pds.registry.client.RegistryClient getRegistryClient()
public void ingest()
Copyright © 2010–2019 Planetary Data System. All rights reserved.