Class RolloverResponse

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

public final class RolloverResponse extends ShardsAcknowledgedResponse implements org.elasticsearch.common.xcontent.ToXContentObject
Response object for RolloverRequest API Note: there is a new class with the same name for the Java HLRC that uses a typeless format. Any changes done to this class should also go to that client class.
  • Constructor Details

    • RolloverResponse

      public RolloverResponse( oldIndex,  newIndex, <,​> conditionResults, boolean dryRun, boolean rolledOver, boolean acknowledged, boolean shardsAcknowledged)
  • Method Details

    • getOldIndex

      public  getOldIndex()
      Returns the name of the index that the request alias was pointing to
    • getNewIndex

      public  getNewIndex()
      Returns the name of the index that the request alias currently points to
    • getConditionStatus

      public <,​> getConditionStatus()
      Returns the statuses of all the request conditions
    • isDryRun

      public boolean isDryRun()
      Returns if the rollover execution was skipped even when conditions were met
    • isRolledOver

      public boolean isRolledOver()
      Returns true if the rollover was not simulated and the conditions were met
    • isShardsAcknowledged

      public boolean isShardsAcknowledged()
      Description copied from class: ShardsAcknowledgedResponse
      Returns true if the requisite number of shards were started before returning from the index creation operation. If AcknowledgedResponse.isAcknowledged() is false, then this also returns false.
      Overrides:
      isShardsAcknowledged in class ShardsAcknowledgedResponse
    • 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 AcknowledgedResponse
      Throws:
    • addCustomFields

      protected void addCustomFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Overrides:
      addCustomFields in class ShardsAcknowledgedResponse
      Throws:
    • fromXContent

      public static RolloverResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class ShardsAcknowledgedResponse