SuccessfullyProcessedpublic class WorkerBulkByScrollTaskState extends java.lang.Object implements SuccessfullyProcessed
BulkByScrollTask that does the actual work of querying and indexing| Constructor | Description |
|---|---|
WorkerBulkByScrollTaskState(BulkByScrollTask task,
java.lang.Integer sliceId,
float requestsPerSecond) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
countBatch() |
|
void |
countBulkRetry() |
|
void |
countCreated() |
|
void |
countDeleted() |
|
void |
countNoop() |
|
void |
countSearchRetry() |
|
void |
countUpdated() |
|
void |
countVersionConflict() |
|
void |
delayPrepareBulkRequest(ThreadPool threadPool,
TimeValue lastBatchStartTime,
int lastBatchSize,
AbstractRunnable prepareBulkRequestRunnable) |
Schedule prepareBulkRequestRunnable to run after some delay.
|
long |
getCreated() |
Count of documents created.
|
long |
getDeleted() |
Count of successful delete operations.
|
BulkByScrollTask.Status |
getStatus() |
|
long |
getUpdated() |
Count of documents updated.
|
void |
handleCancel() |
|
void |
rethrottle(float newRequestsPerSecond) |
Apply
newRequestsPerSecond as the new rate limit for this task's search requests |
void |
setTotal(long totalHits) |
|
TimeValue |
throttleWaitTime(TimeValue lastBatchStartTime,
TimeValue now,
int lastBatchSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSuccessfullyProcessedpublic WorkerBulkByScrollTaskState(BulkByScrollTask task, java.lang.Integer sliceId, float requestsPerSecond)
public BulkByScrollTask.Status getStatus()
public void handleCancel()
public void setTotal(long totalHits)
public void countBatch()
public void countNoop()
public long getCreated()
SuccessfullyProcessedgetCreated in interface SuccessfullyProcessedpublic void countCreated()
public long getUpdated()
SuccessfullyProcessedgetUpdated in interface SuccessfullyProcessedpublic void countUpdated()
public long getDeleted()
SuccessfullyProcessedgetDeleted in interface SuccessfullyProcessedpublic void countDeleted()
public void countVersionConflict()
public void countBulkRetry()
public void countSearchRetry()
public void delayPrepareBulkRequest(ThreadPool threadPool, TimeValue lastBatchStartTime, int lastBatchSize, AbstractRunnable prepareBulkRequestRunnable)
public TimeValue throttleWaitTime(TimeValue lastBatchStartTime, TimeValue now, int lastBatchSize)
public void rethrottle(float newRequestsPerSecond)
newRequestsPerSecond as the new rate limit for this task's search requests