java.lang.Object
org.elasticsearch.client.indexlifecycle.Phase
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

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

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Phase(String name, org.elasticsearch.core.TimeValue minimumAge, Map<String,LifecycleAction> actions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    org.elasticsearch.core.TimeValue
     
     
    int
     
    static Phase
    parse(org.elasticsearch.xcontent.XContentParser parser, String name)
     
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Constructor Details

    • Phase

      public Phase(String name, org.elasticsearch.core.TimeValue minimumAge, Map<String,LifecycleAction> actions)
      Parameters:
      name - the name of this Phase.
      minimumAge - the age of the index when the index should move to this Phase.
      actions - a Map of the LifecycleActions to run when during this Phase. The keys in this map are the associated action names.
  • Method Details

    • parse

      public static Phase parse(org.elasticsearch.xcontent.XContentParser parser, String name)
    • 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 this 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