public static class BulkByScrollTask.Status
extends java.lang.Object
implements org.elasticsearch.tasks.Task.Status
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INCLUDE_CREATED
XContent param name to indicate if "created" count must be included
in the response.
|
static java.lang.String |
INCLUDE_UPDATED
XContent param name to indicate if "updated" count must be included
in the response.
|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
Status(long total,
long updated,
long created,
long deleted,
int batches,
long versionConflicts,
long noops,
long bulkRetries,
long searchRetries,
org.elasticsearch.common.unit.TimeValue throttled,
float requestsPerSecond,
java.lang.String reasonCancelled,
org.elasticsearch.common.unit.TimeValue throttledUntil) |
Status(org.elasticsearch.common.io.stream.StreamInput in) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatches()
Number of scan responses this request has processed.
|
long |
getBulkRetries()
Number of retries that had to be attempted due to bulk actions being rejected.
|
long |
getCreated()
Count of documents created.
|
long |
getDeleted()
Count of successful delete operations.
|
long |
getNoops()
Number of noops (skipped bulk items) as part of this request.
|
java.lang.String |
getReasonCancelled()
The reason that the request was canceled or null if it hasn't been.
|
float |
getRequestsPerSecond()
The number of requests per second to which to throttle the request.
|
long |
getSearchRetries()
Number of retries that had to be attempted due to search actions being rejected.
|
org.elasticsearch.common.unit.TimeValue |
getThrottled()
The total time this request has throttled itself not including the current throttle time if it is currently sleeping.
|
org.elasticsearch.common.unit.TimeValue |
getThrottledUntil()
Remaining delay of any current throttle sleep or 0 if not sleeping.
|
long |
getTotal()
The total number of documents this request will process.
|
long |
getUpdated()
Count of documents updated.
|
long |
getVersionConflicts()
Number of version conflicts this request has hit.
|
java.lang.String |
getWriteableName() |
void |
innerToString(java.lang.StringBuilder builder) |
org.elasticsearch.common.xcontent.XContentBuilder |
innerXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
java.lang.String |
toString() |
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public static final java.lang.String NAME
public static final java.lang.String INCLUDE_CREATED
public static final java.lang.String INCLUDE_UPDATED
public Status(long total,
long updated,
long created,
long deleted,
int batches,
long versionConflicts,
long noops,
long bulkRetries,
long searchRetries,
org.elasticsearch.common.unit.TimeValue throttled,
float requestsPerSecond,
@Nullable
java.lang.String reasonCancelled,
org.elasticsearch.common.unit.TimeValue throttledUntil)
public Status(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
java.io.IOExceptionpublic void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.Writeablejava.io.IOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
toXContent in interface org.elasticsearch.common.xcontent.ToXContentjava.io.IOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder innerXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void innerToString(java.lang.StringBuilder builder)
public java.lang.String getWriteableName()
getWriteableName in interface org.elasticsearch.common.io.stream.NamedWriteablepublic long getTotal()
public long getUpdated()
public long getCreated()
public long getDeleted()
public int getBatches()
public long getVersionConflicts()
public long getNoops()
public long getBulkRetries()
public long getSearchRetries()
public org.elasticsearch.common.unit.TimeValue getThrottled()
public float getRequestsPerSecond()
public java.lang.String getReasonCancelled()
public org.elasticsearch.common.unit.TimeValue getThrottledUntil()