- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
- Enclosing class:
IndexingStats
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested 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, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionStats
(long indexCount, long indexTimeInMillis, long indexCurrent, long indexFailedCount, long indexFailedDueToVersionConflictCount, long deleteCount, long deleteTimeInMillis, long deleteCurrent, long noopUpdateCount, boolean isThrottled, long throttleTimeInMillis, long totalIndexingTimeSinceShardStartedInNanos, long totalIndexingExecutionTimeSinceShardStartedInNanos, long totalActiveTimeInNanos, double recentIndexingLoad, double peakIndexingLoad) Stats
(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IndexingStats.Stats stats) boolean
long
Returns the number of delete operation executedlong
Returns the currently in-flight delete operationsThe total amount of time spend on executing delete operations.long
The total number of indexing operationslong
Returns the currently in-flight indexing operations.long
The number of failed indexing operationslong
The number of indexing operations that failed because of a version conflict (a subset of all index failed operations)The total amount of time spend on executing index operations.long
double
Returns a measurement of the peak write load.double
Returns a measurement of the write load which favours more recent load.Gets the amount of time in a TimeValue that the index has been under merge throttling controllong
long
The total amount of time spend on indexing plus writing indexing buffers.double
Returns a measurement of the write load.int
hashCode()
boolean
Returns if the index is under merge throttling controltoXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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 indexFailedDueToVersionConflictCount, long deleteCount, long deleteTimeInMillis, long deleteCurrent, long noopUpdateCount, boolean isThrottled, long throttleTimeInMillis, long totalIndexingTimeSinceShardStartedInNanos, long totalIndexingExecutionTimeSinceShardStartedInNanos, long totalActiveTimeInNanos, double recentIndexingLoad, double peakIndexingLoad)
-
-
Method Details
-
add
-
getIndexCount
public long getIndexCount()The total number of indexing operations -
getIndexFailedCount
public long getIndexFailedCount()The number of failed indexing operations -
getIndexFailedDueToVersionConflictCount
public long getIndexFailedDueToVersionConflictCount()The number of indexing operations that failed because of a version conflict (a subset of all index failed 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() -
getWriteLoad
public double getWriteLoad()Returns a measurement of the write load.If this
IndexingStats.Stats
instance represents a single shard, this is ratio of the sum of the time taken by every index operations since the shard started to the elapsed time since the shard started.If this
IndexingStats.Stats
instance represents multiple shards, this is the average of that ratio for each shard, weighted by the elapsed time for each shard. -
getRecentWriteLoad
public double getRecentWriteLoad()Returns a measurement of the write load which favours more recent load.If this
IndexingStats.Stats
instance represents a single shard, this is an Exponentially Weighted Moving Rate based on the time taken by indexing operations in this shard since the shard started.If this
IndexingStats.Stats
instance represents multiple shards, this is the average of that ratio for each shard, weighted by the elapsed time for each shard. -
getPeakWriteLoad
public double getPeakWriteLoad()Returns a measurement of the peak write load.If this
IndexingStats.Stats
instance represents a single shard, this is the highest value thatgetRecentWriteLoad()
would return for any of the instances created for this shard since it started (i.e. the highest value seen by any call toInternalIndexingStats.stats(boolean, long, long, long, long, long, double)
).If this
IndexingStats.Stats
instance represents multiple shards, this is the average of that value for each shard, weighted by the elapsed time for each shard. (N.B. This is the average of the peak values, not the peak of the average value.) -
getTotalActiveTimeInMillis
public long getTotalActiveTimeInMillis() -
getTotalIndexingExecutionTimeInMillis
public long getTotalIndexingExecutionTimeInMillis()The total amount of time spend on indexing plus writing indexing buffers. -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-