Class RecoveryState.RecoveryFilesDetails

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

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

  • Constructor Details

    • RecoveryFilesDetails

      public RecoveryFilesDetails()
  • 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
    • 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
    • addFileDetails

      public void addFileDetails(String name, long length, boolean reused)
    • addRecoveredBytesToFile

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

      public RecoveryState.FileDetail get(String name)
    • setComplete

      public void setComplete()
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clear

      public void clear()
    • values

    • isComplete

      public boolean isComplete()