public interface BatchHandler
| Modifier and Type | Method and Description |
|---|---|
default boolean |
completeUpload(String batchId,
String fileIdx,
BatchFileInfo fileInfo)
Callback for the batch handler to execute post-upload actions.
|
Batch |
getBatch(String batchId)
Attempts to fetch a batch with the given id.
|
String |
getName()
Gets the batch handler's name.
|
TransientStore |
getTransientStore()
Gets the transient store used by this batch handler.
|
void |
initialize(String name,
Map<String,String> properties)
Initializes this batch handler with the given name and configuration properties.
|
Batch |
newBatch(String batchId)
Initiates a new batch with an optional externally provided id.
|
void initialize(String name, Map<String,String> properties)
name - the batch handler's nameproperties - the configuration propertiesBatch newBatch(String batchId)
batchId - the id to use for the batch, or null to generate itBatch getBatch(String batchId)
batchId - the batch id to fetchnull if not founddefault boolean completeUpload(String batchId, String fileIdx, BatchFileInfo fileInfo)
batchId - the batch idfileIdx - the file index within the batchfileInfo - file information regarting the uploaded filetrue if the action was successTransientStore getTransientStore()
Copyright © 2019 Nuxeo. All rights reserved.