public class WorkingBulkByScrollTask extends BulkByScrollTask implements SuccessfullyProcessed
BulkByScrollTask subclass for tasks that actually perform the work. Compare to ParentBulkByScrollTask.BulkByScrollTask.Status, BulkByScrollTask.StatusOrException| Constructor and Description |
|---|
WorkingBulkByScrollTask(long id,
java.lang.String type,
java.lang.String action,
java.lang.String description,
org.elasticsearch.tasks.TaskId parentTask,
java.lang.Integer sliceId,
float requestsPerSecond) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreated()
Count of documents created.
|
long |
getDeleted()
Count of successful delete operations.
|
org.elasticsearch.tasks.TaskInfo |
getInfoGivenSliceInfo(java.lang.String localNodeId,
java.util.List<org.elasticsearch.tasks.TaskInfo> sliceInfo)
Build the status for this task given a snapshot of the information of running slices.
|
BulkByScrollTask.Status |
getStatus() |
long |
getUpdated()
Count of documents updated.
|
protected void |
onCancelled() |
cancelOnParentLeaving, getReasonCancelled, isCancelledgetAction, getDescription, getId, getParentTaskId, getStartTime, getType, result, result, taskInfo, taskInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSuccessfullyProcessedpublic WorkingBulkByScrollTask(long id,
java.lang.String type,
java.lang.String action,
java.lang.String description,
org.elasticsearch.tasks.TaskId parentTask,
java.lang.Integer sliceId,
float requestsPerSecond)
public BulkByScrollTask.Status getStatus()
getStatus in class BulkByScrollTaskprotected void onCancelled()
onCancelled in class org.elasticsearch.tasks.CancellableTaskpublic org.elasticsearch.tasks.TaskInfo getInfoGivenSliceInfo(java.lang.String localNodeId,
java.util.List<org.elasticsearch.tasks.TaskInfo> sliceInfo)
BulkByScrollTaskgetInfoGivenSliceInfo in class BulkByScrollTaskpublic long getCreated()
SuccessfullyProcessedgetCreated in interface SuccessfullyProcessedpublic long getUpdated()
SuccessfullyProcessedgetUpdated in interface SuccessfullyProcessedpublic long getDeleted()
SuccessfullyProcessedgetDeleted in interface SuccessfullyProcessed