Package org.elasticsearch.index.flush
Class FlushStats
java.lang.Object
org.elasticsearch.index.flush.FlushStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class FlushStats 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 FlushStats()FlushStats(long total, long periodic, long totalTimeInMillis)FlushStats(StreamInput in) -
Method Summary
Modifier and Type Method Description voidadd(long total, long periodic, long totalTimeInMillis)voidadd(FlushStats flushStats)voidaddTotals(FlushStats flushStats)longgetPeriodic()The number of flushes that were periodically triggered when translog exceeded the flush threshold.longgetTotal()The total number of flush executed.TimeValuegetTotalTime()The total time merges have been executed.longgetTotalTimeInMillis()The total time merges have been executed (in milliseconds).XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
FlushStats
public FlushStats() -
FlushStats
- Throws:
java.io.IOException
-
FlushStats
public FlushStats(long total, long periodic, long totalTimeInMillis)
-
-
Method Details
-
add
public void add(long total, long periodic, long totalTimeInMillis) -
add
-
addTotals
-
getTotal
public long getTotal()The total number of flush executed. -
getPeriodic
public long getPeriodic()The number of flushes that were periodically triggered when translog exceeded the flush threshold. -
getTotalTimeInMillis
public long getTotalTimeInMillis()The total time merges have been executed (in milliseconds). -
getTotalTime
The total time merges have been executed. -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.
-