Class Phase
java.lang.Object
org.elasticsearch.client.indexlifecycle.Phase
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
Represents set of
LifecycleAction
s 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.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionPhase
(String name, org.elasticsearch.core.TimeValue minimumAge, Map<String, LifecycleAction> actions) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.elasticsearch.core.TimeValue
getName()
int
hashCode()
static Phase
toString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
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
- aMap
of theLifecycleAction
s to run when during thisPhase
. The keys in this map are the associated action names.
-
-
Method Details
-
parse
-
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
Map
of theLifecycleAction
s to run when during thisPhase
.
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-