Class Phase
java.lang.Object
org.elasticsearch.client.indexlifecycle.Phase
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class Phase
extends java.lang.Object
implements org.elasticsearch.common.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.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors Constructor Description Phase(java.lang.String name, org.elasticsearch.common.unit.TimeValue minimumAge, java.util.Map<java.lang.String,LifecycleAction> actions) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Map<java.lang.String,LifecycleAction>getActions()org.elasticsearch.common.unit.TimeValuegetMinimumAge()java.lang.StringgetName()inthashCode()static Phaseparse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String name)java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
Phase
public Phase(java.lang.String name, org.elasticsearch.common.unit.TimeValue minimumAge, java.util.Map<java.lang.String,LifecycleAction> actions)- Parameters:
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.
-
-
Method Details
-
parse
public static Phase parse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String name) -
getMinimumAge
public org.elasticsearch.common.unit.TimeValue getMinimumAge()- Returns:
- the age of the index when the index should move to this
Phase.
-
getName
public java.lang.String getName()- Returns:
- the name of this
Phase
-
getActions
- Returns:
- a
Mapof theLifecycleActions to run when during thisPhase.
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-