public class BulkServiceImpl extends Object implements BulkService
BulkService
.Modifier and Type | Field and Description |
---|---|
protected static String |
COMMAND |
protected static String |
PROCESSED_DOCUMENTS |
protected static String |
SCROLL_END_TIME |
protected static String |
SCROLL_START_TIME |
protected static String |
SCROLLED_DOCUMENT_COUNT |
protected static String |
SET_STREAM_NAME |
protected static String |
STATE |
protected static String |
SUBMIT_TIME |
Constructor and Description |
---|
BulkServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
await(String commandId,
Duration duration)
Waits for completion of given bulk command.
|
KeyValueStore |
getKvStore() |
BulkStatus |
getStatus(String commandId) |
String |
submit(BulkCommand command)
Submits a
BulkCommand that will be processed asynchronously. |
protected static final String SET_STREAM_NAME
protected static final String COMMAND
protected static final String SUBMIT_TIME
protected static final String SCROLL_START_TIME
protected static final String SCROLL_END_TIME
protected static final String STATE
protected static final String PROCESSED_DOCUMENTS
protected static final String SCROLLED_DOCUMENT_COUNT
public BulkServiceImpl()
public String submit(BulkCommand command)
BulkService
BulkCommand
that will be processed asynchronously.submit
in interface BulkService
command
- the command to submitpublic BulkStatus getStatus(String commandId)
getStatus
in interface BulkService
public boolean await(String commandId, Duration duration) throws InterruptedException
BulkService
await
in interface BulkService
commandId
- the command to waitduration
- the duration to waittrue
if bulk command completed or false
if computation has not finished after the timeoutInterruptedException
public KeyValueStore getKvStore()
Copyright © 2018 Nuxeo. All rights reserved.