Class RefreshStats

java.lang.Object
org.elasticsearch.index.refresh.RefreshStats
All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment

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

    • RefreshStats

      public RefreshStats()
    • RefreshStats

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

      public RefreshStats(long total, long totalTimeInMillis, long externalTotal, long externalTotalTimeInMillis, int listeners)
  • Method Details

    • 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
    • add

      public void add(RefreshStats refreshStats)
    • addTotals

      public void addTotals(RefreshStats refreshStats)
    • getTotal

      public long getTotal()
      The total number of refresh executed.
    • getExternalTotal

      public long getExternalTotal()
    • getTotalTimeInMillis

      public long getTotalTimeInMillis()
      The total time spent executing refreshes (in milliseconds).
    • getExternalTotalTimeInMillis

      public long getExternalTotalTimeInMillis()
      The total time spent executing external refreshes (in milliseconds).
    • getTotalTime

      public TimeValue getTotalTime()
      The total time refreshes have been executed.
    • getExternalTotalTime

      public TimeValue getExternalTotalTime()
      The total time external refreshes have been executed.
    • getListeners

      public int getListeners()
      The number of waiting refresh listeners.
    • toXContent

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object