public interface BulkService extends AsyncService<String,BulkStatus,Map<String,Serializable>>
At this level, there is no verification of the user calling the method against command's user.
This kind of verification has to be done by caller if needed.
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(Duration duration)
Waits for completion of all bulk commands.
|
boolean |
await(String commandId,
Duration duration)
Waits for completion of given bulk command.
|
BulkCommand |
getCommand(String commandId)
Returns the command or null if the command is not found or aborted.
|
List<BulkStatus> |
getStatuses(String username)
Gets the list of action statuses triggered by the given user.
|
String |
submit(BulkCommand command)
Submits a
BulkCommand that will be processed asynchronously. |
abort, getResult, getStatusString submit(BulkCommand command)
BulkCommand that will be processed asynchronously.command - the command to submitBulkCommand getCommand(String commandId)
boolean await(String commandId, Duration duration) throws InterruptedException
commandId - the command to waitduration - the duration to waittrue if bulk command completed or false if computation has not finished after the timeoutInterruptedExceptionboolean await(Duration duration) throws InterruptedException
duration - the duration to waittrue if all bulk commands completed or false if one or more has not finished after the
timeoutInterruptedExceptionList<BulkStatus> getStatuses(String username)
username - the user nameCopyright © 2019 Nuxeo. All rights reserved.