Class RemoteSegmentStats

java.lang.Object
org.opensearch.index.remote.RemoteSegmentStats
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentFragment

@PublicApi(since="2.10.0") public class RemoteSegmentStats extends Object implements org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContentFragment
Tracks remote store segment download and upload stats Used for displaying remote store stats in IndicesStats/NodeStats API
Opensearch.api:
  • Constructor Details

  • Method Details

    • getUploadBytesStarted

      public long getUploadBytesStarted()
    • addUploadBytesStarted

      public void addUploadBytesStarted(long uploadsStarted)
    • getUploadBytesFailed

      public long getUploadBytesFailed()
    • addUploadBytesFailed

      public void addUploadBytesFailed(long uploadsFailed)
    • getUploadBytesSucceeded

      public long getUploadBytesSucceeded()
    • addUploadBytesSucceeded

      public void addUploadBytesSucceeded(long uploadsSucceeded)
    • getDownloadBytesStarted

      public long getDownloadBytesStarted()
    • addDownloadBytesStarted

      public void addDownloadBytesStarted(long downloadsStarted)
    • getDownloadBytesFailed

      public long getDownloadBytesFailed()
    • addDownloadBytesFailed

      public void addDownloadBytesFailed(long downloadsFailed)
    • getDownloadBytesSucceeded

      public long getDownloadBytesSucceeded()
    • addDownloadBytesSucceeded

      public void addDownloadBytesSucceeded(long downloadsSucceeded)
    • getMaxRefreshTimeLag

      public long getMaxRefreshTimeLag()
    • setMaxRefreshTimeLag

      public void setMaxRefreshTimeLag(long maxRefreshTimeLag)
    • getMaxRefreshBytesLag

      public long getMaxRefreshBytesLag()
    • addMaxRefreshBytesLag

      public void addMaxRefreshBytesLag(long maxRefreshBytesLag)
    • getTotalRefreshBytesLag

      public long getTotalRefreshBytesLag()
    • addTotalRefreshBytesLag

      public void addTotalRefreshBytesLag(long totalRefreshBytesLag)
    • getTotalUploadTime

      public long getTotalUploadTime()
    • addTotalUploadTime

      public void addTotalUploadTime(long totalUploadTime)
    • getTotalDownloadTime

      public long getTotalDownloadTime()
    • addTotalDownloadTime

      public void addTotalDownloadTime(long totalDownloadTime)
    • getTotalRejections

      public long getTotalRejections()
    • addTotalRejections

      public void addTotalRejections(long totalRejections)
    • add

      public void add(RemoteSegmentStats existingStats)
      Adds existing stats. Used for stats roll-ups at index or node level
      Parameters:
      existingStats - : Existing RemoteSegmentStats to add
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • toXContent

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object