public static class IndexingStats.Stats extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Stats(long indexCount,
long indexTimeInMillis,
long indexCurrent,
long indexFailedCount,
long deleteCount,
long deleteTimeInMillis,
long deleteCurrent,
long noopUpdateCount,
boolean isThrottled,
long throttleTimeInMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IndexingStats.Stats stats) |
long |
getDeleteCount()
Returns the number of delete operation executed
|
long |
getDeleteCurrent()
Returns the currently in-flight delete operations
|
TimeValue |
getDeleteTime()
The total amount of time spend on executing delete operations.
|
long |
getIndexCount()
The total number of indexing operations
|
long |
getIndexCurrent()
Returns the currently in-flight indexing operations.
|
long |
getIndexFailedCount()
The number of failed indexing operations
|
TimeValue |
getIndexTime()
The total amount of time spend on executing index operations.
|
long |
getNoopUpdateCount() |
TimeValue |
getThrottleTime()
Gets the amount of time in a TimeValue that the index has been under merge throttling control
|
boolean |
isThrottled()
Returns if the index is under merge throttling control
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static IndexingStats.Stats |
readStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Stats(long indexCount,
long indexTimeInMillis,
long indexCurrent,
long indexFailedCount,
long deleteCount,
long deleteTimeInMillis,
long deleteCurrent,
long noopUpdateCount,
boolean isThrottled,
long throttleTimeInMillis)
public void add(IndexingStats.Stats stats)
public long getIndexCount()
public long getIndexFailedCount()
public TimeValue getIndexTime()
public long getIndexCurrent()
public long getDeleteCount()
public boolean isThrottled()
public TimeValue getThrottleTime()
public TimeValue getDeleteTime()
public long getDeleteCurrent()
public long getNoopUpdateCount()
public static IndexingStats.Stats readStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException