Package org.elasticsearch.index.shard
Class IndexingStats.Stats
java.lang.Object
org.elasticsearch.index.shard.IndexingStats.Stats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- Enclosing class:
- IndexingStats
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionStats(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 TypeMethodDescriptionvoidadd(IndexingStats.Stats stats) longReturns the number of delete operation executedlongReturns the currently in-flight delete operationsorg.elasticsearch.core.TimeValueThe total amount of time spend on executing delete operations.longThe total number of indexing operationslongReturns the currently in-flight indexing operations.longThe number of failed indexing operationsorg.elasticsearch.core.TimeValueThe total amount of time spend on executing index operations.longorg.elasticsearch.core.TimeValueGets the amount of time in a TimeValue that the index has been under merge throttling controlbooleanReturns if the index is under merge throttling controlorg.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Stats
- Throws:
IOException
-
Stats
public Stats(long indexCount, long indexTimeInMillis, long indexCurrent, long indexFailedCount, long deleteCount, long deleteTimeInMillis, long deleteCurrent, long noopUpdateCount, boolean isThrottled, long throttleTimeInMillis)
-
-
Method Details
-
add
-
getIndexCount
public long getIndexCount()The total number of indexing operations -
getIndexFailedCount
public long getIndexFailedCount()The number of failed indexing operations -
getIndexTime
public org.elasticsearch.core.TimeValue 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
public org.elasticsearch.core.TimeValue getThrottleTime()Gets the amount of time in a TimeValue that the index has been under merge throttling control -
getDeleteTime
public org.elasticsearch.core.TimeValue 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.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-