Class RolloverResponse

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

public final class RolloverResponse extends ShardsAcknowledgedResponse
Response object for RolloverRequest API
  • Constructor Details

    • RolloverResponse

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

    • getOldIndex

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

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

      public Map<String,Boolean> 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
    • fromXContent

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

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

      public int hashCode()
      Overrides:
      hashCode in class ShardsAcknowledgedResponse