Class TranslogStats

java.lang.Object
org.elasticsearch.index.translog.TranslogStats
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class TranslogStats extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentFragment
  • Constructor Details

    • TranslogStats

      public TranslogStats()
    • TranslogStats

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

      public TranslogStats(int numberOfOperations, long translogSizeInBytes, int uncommittedOperations, long uncommittedSizeInBytes, long earliestLastModifiedAge)
  • Method Details

    • add

      public void add(TranslogStats translogStats)
    • getTranslogSizeInBytes

      public long getTranslogSizeInBytes()
    • estimatedNumberOfOperations

      public int estimatedNumberOfOperations()
    • getUncommittedSizeInBytes

      public long getUncommittedSizeInBytes()
      the size of the generations in the translog that weren't yet to committed to lucene
    • getUncommittedOperations

      public int getUncommittedOperations()
      the number of operations in generations of the translog that weren't yet to committed to lucene
    • getEarliestLastModifiedAge

      public long getEarliestLastModifiedAge()
    • toXContent

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

      public String toString()
      Overrides:
      toString in class Object
    • 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