类 Phase
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) -
方法概要
修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)java.util.Map<java.lang.String,LifecycleAction>getActions()org.easysearch.common.unit.TimeValuegetMinimumAge()java.lang.StringgetName()inthashCode()static Phaseparse(org.easysearch.common.xcontent.XContentParser parser, java.lang.String name)java.lang.StringtoString()org.easysearch.common.xcontent.XContentBuildertoXContent(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 thisPhase.minimumAge- the age of the index when the index should move to thisPhase.actions- aMapof theLifecycleActions to run when during thisPhase. 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
- 返回:
- a
Mapof theLifecycleActions to run when during thisPhase.
-
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
-