Class LifecyclePolicy
java.lang.Object
org.elasticsearch.client.indexlifecycle.LifecyclePolicy
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
Represents the lifecycle of an index from creation to deletion. A
LifecyclePolicy
is made up of a set of Phase
s which it will
move through.-
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
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<LifecyclePolicy,
String> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
int
hashCode()
static LifecyclePolicy
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
-
Field Details
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<LifecyclePolicy,String> PARSER
-
-
Constructor Details
-
LifecyclePolicy
- Parameters:
name
- the name of thisLifecyclePolicy
phases
- aMap
ofPhase
s which make up thisLifecyclePolicy
.
-
-
Method Details
-
parse
-
getName
- Returns:
- the name of this
LifecyclePolicy
-
getPhases
- Returns:
- the
Phase
s for thisLifecyclePolicy
in the order in which they will be executed.
-
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
-