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