java.lang.Object
org.easysearch.client.indexlifecycle.Phase
所有已实现的接口:
org.easysearch.common.xcontent.ToXContent, org.easysearch.common.xcontent.ToXContentObject

public class Phase
extends java.lang.Object
implements org.easysearch.common.xcontent.ToXContentObject
Represents set of LifecycleActions which should be executed at a particular point in the lifecycle of an index.
  • 嵌套类概要

    从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent

    org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params
  • 字段概要

    从接口继承的字段 org.easysearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • 构造器概要

    构造器
    构造器 说明
    Phase​(java.lang.String name, org.easysearch.common.unit.TimeValue minimumAge, java.util.Map<java.lang.String,​LifecycleAction> actions)  
  • 方法概要

    修饰符和类型 方法 说明
    boolean equals​(java.lang.Object obj)  
    java.util.Map<java.lang.String,​LifecycleAction> getActions()  
    org.easysearch.common.unit.TimeValue getMinimumAge()  
    java.lang.String getName()  
    int hashCode()  
    static Phase parse​(org.easysearch.common.xcontent.XContentParser parser, java.lang.String name)  
    java.lang.String toString()  
    org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)  

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject

    isFragment
  • 构造器详细资料

    • Phase

      public Phase​(java.lang.String name, org.easysearch.common.unit.TimeValue minimumAge, java.util.Map<java.lang.String,​LifecycleAction> actions)
      参数:
      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.
  • 方法详细资料

    • parse

      public static Phase parse​(org.easysearch.common.xcontent.XContentParser parser, java.lang.String name)
    • getMinimumAge

      public org.easysearch.common.unit.TimeValue getMinimumAge()
      返回:
      the age of the index when the index should move to this Phase.
    • getName

      public java.lang.String getName()
      返回:
      the name of this Phase
    • getActions

      public java.util.Map<java.lang.String,​LifecycleAction> getActions()
      返回:
      a Map of the LifecycleActions to run when during this Phase.
    • toXContent

      public org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      指定者:
      toXContent 在接口中 org.easysearch.common.xcontent.ToXContent
      抛出:
      java.io.IOException
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      覆盖:
      equals 在类中 java.lang.Object
    • toString

      public java.lang.String toString()
      覆盖:
      toString 在类中 java.lang.Object