Class Phase
- java.lang.Object
-
- org.elasticsearch.client.indexlifecycle.Phase
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class Phase extends Object implements ToXContentObject
Represents set ofLifecycleActions 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
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,LifecycleAction>getActions()TimeValuegetMinimumAge()StringgetName()inthashCode()static Phaseparse(XContentParser parser, String name)StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Constructor Detail
-
Phase
public Phase(String name, 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 thisPhase. The keys in this map are the associated action names.
-
-
Method Detail
-
parse
public static Phase parse(XContentParser parser, String name)
-
getMinimumAge
public TimeValue getMinimumAge()
- Returns:
- the age of the index when the index should move to this
Phase.
-
getActions
public Map<String,LifecycleAction> getActions()
- Returns:
- a
Mapof theLifecycleActions to run when during thisPhase.
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-