Class FlushStats

java.lang.Object
org.elasticsearch.index.flush.FlushStats
All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment

public class FlushStats extends Object implements Writeable, ToXContentFragment
  • Constructor Details

    • FlushStats

      public FlushStats()
    • FlushStats

      public FlushStats(StreamInput in) throws IOException
      Throws:
      IOException
    • FlushStats

      public FlushStats(long total, long periodic, long totalTimeInMillis)
  • Method Details

    • add

      public void add(long total, long periodic, long totalTimeInMillis)
    • add

      public void add(FlushStats flushStats)
    • addTotals

      public void addTotals(FlushStats flushStats)
    • 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

      public TimeValue getTotalTime()
      The total time merges have been executed.
    • toXContent

      public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface ToXContent
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException