Class RecoveryState.Index

java.lang.Object
org.elasticsearch.indices.recovery.RecoveryState.Timer
org.elasticsearch.indices.recovery.RecoveryState.Index
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment
Enclosing class:
RecoveryState

public static class RecoveryState.Index extends RecoveryState.Timer implements org.elasticsearch.common.xcontent.ToXContentFragment, Writeable
  • Field Details

  • Constructor Details

  • 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
      Overrides:
      writeTo in class RecoveryState.Timer
      Throws:
      IOException
    • fileDetails

      public List<RecoveryState.FileDetail> fileDetails()
    • reset

      public void reset()
      Overrides:
      reset in class RecoveryState.Timer
    • addFileDetail

      public void addFileDetail(String name, long length, boolean reused)
    • setFileDetailsComplete

      public void setFileDetailsComplete()
    • addRecoveredBytesToFile

      public void addRecoveredBytesToFile(String name, long bytes)
    • addSourceThrottling

      public void addSourceThrottling(long timeInNanos)
    • addTargetThrottling

      public void addTargetThrottling(long timeInNanos)
    • sourceThrottling

      public org.elasticsearch.core.TimeValue sourceThrottling()
    • targetThrottling

      public org.elasticsearch.core.TimeValue targetThrottling()
    • totalFileCount

      public int totalFileCount()
      total number of files that are part of this recovery, both re-used and recovered
    • totalRecoverFiles

      public int totalRecoverFiles()
      total number of files to be recovered (potentially not yet done)
    • recoveredFileCount

      public int recoveredFileCount()
      number of file that were recovered (excluding on ongoing files)
    • recoveredFilesPercent

      public float recoveredFilesPercent()
      percent of recovered (i.e., not reused) files out of the total files to be recovered
    • totalBytes

      public long totalBytes()
      total number of bytes in th shard
    • recoveredBytes

      public long recoveredBytes()
      total number of bytes recovered so far, including both existing and reused
    • totalRecoverBytes

      public long totalRecoverBytes()
      total bytes of files to be recovered (potentially not yet done)
    • bytesStillToRecover

      public long bytesStillToRecover()
      Returns:
      number of bytes still to recover, i.e. totalRecoverBytes() minus recoveredBytes(), or -1 if the full set of files to recover is not yet known
    • recoveredBytesPercent

      public float recoveredBytesPercent()
      percent of bytes recovered out of total files bytes *to be* recovered
    • reusedFileCount

      public int reusedFileCount()
    • reusedBytes

      public long reusedBytes()
    • toXContent

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

      public String toString()
      Overrides:
      toString in class Object
    • getFileDetails

      public RecoveryState.FileDetail getFileDetails(String dest)