public static class IndexingStats.Stats extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, wait
isFragment
public 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.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException