java.lang.Object
org.elasticsearch.xpack.core.ilm.Phase
- All Implemented Interfaces:
Writeable,ToXContent,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
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()inthashCode()booleanmaybeAddDeprecationWarningForFreezeAction(String policyName) static Phaseparse(XContentParser parser, String name) toString()toXContent(XContentBuilder builder, 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
-
ACTIONS_FIELD
-
-
Constructor Details
-
Phase
- 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
- 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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-
maybeAddDeprecationWarningForFreezeAction
-