Package org.elasticsearch.index.shard
Class IndexingStats.Stats
- java.lang.Object
-
- org.elasticsearch.index.shard.IndexingStats.Stats
-
- All Implemented Interfaces:
Streamable
,ToXContent
,ToXContentFragment
- Enclosing class:
- IndexingStats
public static class IndexingStats.Stats extends java.lang.Object implements Streamable, ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(IndexingStats.Stats stats)
long
getDeleteCount()
Returns the number of delete operation executedlong
getDeleteCurrent()
Returns the currently in-flight delete operationsTimeValue
getDeleteTime()
The total amount of time spend on executing delete operations.long
getIndexCount()
The total number of indexing operationslong
getIndexCurrent()
Returns the currently in-flight indexing operations.long
getIndexFailedCount()
The number of failed indexing operationsTimeValue
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 controlboolean
isThrottled()
Returns if the index is under merge throttling controlvoid
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
add
public void add(IndexingStats.Stats stats)
-
getIndexCount
public long getIndexCount()
The total number of indexing operations
-
getIndexFailedCount
public long getIndexFailedCount()
The number of failed indexing operations
-
getIndexTime
public 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 TimeValue getThrottleTime()
Gets the amount of time in a TimeValue that the index has been under merge throttling control
-
getDeleteTime
public 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()
-
readStats
public static IndexingStats.Stats readStats(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
-