Class RolloverResponse

All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

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

    • RolloverResponse

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

    • getOldIndex

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

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

      public java.util.Map<java.lang.String,​java.lang.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​(XContentParser parser)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class ShardsAcknowledgedResponse