Class SnapshotIndexShardStatus

All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, org.elasticsearch.core.RefCounted

public class SnapshotIndexShardStatus extends BroadcastShardResponse implements org.elasticsearch.common.xcontent.ToXContentFragment
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse

    TransportResponse.Empty

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     o)
     
    fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser,  indexId)
     
    Returns reason for snapshot failure
    Returns node id of the node where snapshot is currently running
    Returns snapshot stage
    Returns snapshot stats
    int
     
    org.elasticsearch.common.xcontent.XContentBuilder
    toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     
    void
    Write this into the StreamOutput.

    Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastShardResponse

    getIndex, getShardId

    Methods inherited from class org.elasticsearch.transport.TransportMessage

    decRef, incRef, remoteAddress, remoteAddress, tryIncRef

    Methods inherited from class java.lang.

    , , , , , , , ,

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment
  • Constructor Details

    • SnapshotIndexShardStatus

      public SnapshotIndexShardStatus(StreamInput in) throws
      Throws:
  • Method Details

    • getStage

      public SnapshotIndexShardStage getStage()
      Returns snapshot stage
    • getStats

      public SnapshotStats getStats()
      Returns snapshot stats
    • getNodeId

      public  getNodeId()
      Returns node id of the node where snapshot is currently running
    • getFailure

      public  getFailure()
      Returns reason for snapshot failure
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class BroadcastShardResponse
      Throws:
    • toXContent

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

      public static SnapshotIndexShardStatus fromXContent(org.elasticsearch.common.xcontent.XContentParser parser,  indexId) throws
      Throws:
    • equals

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

      public int hashCode()
      Overrides:
       in class