java.lang.Object
org.elasticsearch.xpack.core.ilm.Phase
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,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.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionPhase(String name, org.elasticsearch.core.TimeValue minimumAge, Map<String, LifecycleAction> actions) Phase(StreamInput in) For Serialization -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.elasticsearch.core.TimeValuegetName()inthashCode()booleanmaybeAddDeprecationWarningForFreezeAction(String policyName) static PhasetoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
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
-
Phase
public Phase(String name, org.elasticsearch.core.TimeValue minimumAge, Map<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 hisPhase. The keys in this map are the associated action names. The order of these actions is defined by theLifecycleType
-
Phase
For Serialization- Throws:
IOException
-
-
Method Details
-
parse
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getMinimumAge
public org.elasticsearch.core.TimeValue getMinimumAge()- Returns:
- the age of the index when the index should move to this
Phase.
-
getName
- Returns:
- the name of this
Phase
-
getActions
- Returns:
- a
Mapof theLifecycleActions to run when during hisPhase.
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-
maybeAddDeprecationWarningForFreezeAction
-