Package org.elasticsearch.index.shard
Class IndexingStats.Stats
java.lang.Object
org.elasticsearch.index.shard.IndexingStats.Stats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
- Enclosing class:
- IndexingStats
public static class IndexingStats.Stats extends java.lang.Object implements Writeable, ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description Stats(long indexCount, long indexTimeInMillis, long indexCurrent, long indexFailedCount, long deleteCount, long deleteTimeInMillis, long deleteCurrent, long noopUpdateCount, boolean isThrottled, long throttleTimeInMillis)Stats(StreamInput in) -
Method Summary
Modifier and Type Method Description voidadd(IndexingStats.Stats stats)longgetDeleteCount()Returns the number of delete operation executedlonggetDeleteCurrent()Returns the currently in-flight delete operationsTimeValuegetDeleteTime()The total amount of time spend on executing delete operations.longgetIndexCount()The total number of indexing operationslonggetIndexCurrent()Returns the currently in-flight indexing operations.longgetIndexFailedCount()The number of failed indexing operationsTimeValuegetIndexTime()The total amount of time spend on executing index operations.longgetNoopUpdateCount()TimeValuegetThrottleTime()Gets the amount of time in a TimeValue that the index has been under merge throttling controlbooleanisThrottled()Returns if the index is under merge throttling controlXContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
Method Details
-
add
-
getIndexCount
public long getIndexCount()The total number of indexing operations -
getIndexFailedCount
public long getIndexFailedCount()The number of failed indexing operations -
getIndexTime
The total amount of time spend on executing index operations. -
getIndexCurrent
public long getIndexCurrent()Returns the currently in-flight indexing operations. -
getDeleteCount
public long getDeleteCount()Returns the number of delete operation executed -
isThrottled
public boolean isThrottled()Returns if the index is under merge throttling control -
getThrottleTime
Gets the amount of time in a TimeValue that the index has been under merge throttling control -
getDeleteTime
The total amount of time spend on executing delete operations. -
getDeleteCurrent
public long getDeleteCurrent()Returns the currently in-flight delete operations -
getNoopUpdateCount
public long getNoopUpdateCount() -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-