public interface BatchManager
| Modifier and Type | Method and Description |
|---|---|
void |
addStream(String batchId,
String idx,
InputStream is,
String name,
String mime)
Add an inputStream in a batch Will create a new
Batch if needed
Streams are persisted as temporary files |
void |
clean(String batchId)
Cleanup the temporary storage associated to the batch
|
Object |
execute(String batchId,
String chainOrOperationId,
CoreSession session,
Map<String,Object> contextParams,
Map<String,Object> operationParams)
Executes the chain or operation on the
Blobs from the given
batchId. |
Object |
execute(String batchId,
String fileIdx,
String chainOrOperationId,
CoreSession session,
Map<String,Object> contextParams,
Map<String,Object> operationParams)
Executes the chain or operation on the
Blob from the given
batchId and fileIdx. |
Object |
executeAndClean(String batchId,
String chainOrOperationId,
CoreSession session,
Map<String,Object> contextParams,
Map<String,Object> operationParams)
Executes the chain or operation on the
Blobs from the given
batchId. |
Blob |
getBlob(String batchId,
String fileId) |
Blob |
getBlob(String batchId,
String fileId,
int timeoutS) |
List<Blob> |
getBlobs(String batchId)
Get Blobs associated to a given batch.
|
List<Blob> |
getBlobs(String batchId,
int timeoutS)
Get Blobs associated to a given batch.
|
boolean |
hasBatch(String batchId)
Returns true if there is a batch for the given
batchId, false
otherwise. |
String |
initBatch(String batchId,
String contextName)
Initialize a batch with a given batchId and Context Name If batchId is
not provided, it will be automatically generated
|
void addStream(String batchId, String idx, InputStream is, String name, String mime) throws IOException
Batch if needed
Streams are persisted as temporary filesbatchId - idx - is - name - mime - IOExceptionboolean hasBatch(String batchId)
batchId, false
otherwise.List<Blob> getBlobs(String batchId)
batchId - List<Blob> getBlobs(String batchId, int timeoutS)
batchId - void clean(String batchId)
batchId - String initBatch(String batchId, String contextName)
batchId - contextName - Object execute(String batchId, String chainOrOperationId, CoreSession session, Map<String,Object> contextParams, Map<String,Object> operationParams) throws ClientException
Blobs from the given
batchId.
This method does not clean the temporary storage associated to the
batchId.
ClientExceptionObject execute(String batchId, String fileIdx, String chainOrOperationId, CoreSession session, Map<String,Object> contextParams, Map<String,Object> operationParams) throws ClientException
Blob from the given
batchId and fileIdx.
This method does not clean the temporary storage associated to the
batchId.
ClientExceptionObject executeAndClean(String batchId, String chainOrOperationId, CoreSession session, Map<String,Object> contextParams, Map<String,Object> operationParams) throws ClientException
Blobs from the given
batchId.
This method clean the temporary storage associated to the batchId
after the execution.
ClientExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.