Class ResetFeatureStateResponse

java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.admin.cluster.snapshots.features.ResetFeatureStateResponse
All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class ResetFeatureStateResponse
extends ActionResponse
implements org.elasticsearch.common.xcontent.ToXContentObject
Response to a feature state reset request.
  • Constructor Details

    • ResetFeatureStateResponse

      public ResetFeatureStateResponse​(java.util.List<ResetFeatureStateResponse.ResetFeatureStateStatus> resetFeatureStateStatuses)
      Create a response showing which features have had state reset and success or failure status.
      Parameters:
      resetFeatureStateStatuses - A list of status responses
    • ResetFeatureStateResponse

      public ResetFeatureStateResponse​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • getFeatureStateResetStatuses

      public java.util.List<ResetFeatureStateResponse.ResetFeatureStateStatus> getFeatureStateResetStatuses()
      Returns:
      List of statuses for individual reset operations, one per feature that we tried to reset
    • toXContent

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

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object