java.lang.Object
org.elasticsearch.xpack.core.ilm.Phase
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class Phase extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
Represents set of LifecycleActions which should be executed at a particular point in the lifecycle of an index.
  • Field Details

    • MIN_AGE

      public static final org.elasticsearch.xcontent.ParseField MIN_AGE
    • ACTIONS_FIELD

      public static final org.elasticsearch.xcontent.ParseField ACTIONS_FIELD
  • Constructor Details

  • Method Details

    • parse

      public static Phase parse(org.elasticsearch.xcontent.XContentParser parser, String name)
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getMinimumAge

      public org.elasticsearch.core.TimeValue getMinimumAge()
      Returns:
      the age of the index when the index should move to this Phase.
    • getName

      public String getName()
      Returns:
      the name of this Phase
    • getActions

      public Map<String,LifecycleAction> getActions()
      Returns:
      a Map of the LifecycleActions to run when during his Phase.
    • toXContent

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • maybeAddDeprecationWarningForFreezeAction

      public boolean maybeAddDeprecationWarningForFreezeAction(String policyName)