Class LifecyclePolicy
java.lang.Object
org.elasticsearch.client.indexlifecycle.LifecyclePolicy
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class LifecyclePolicy
extends Object
implements org.elasticsearch.common.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.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<LifecyclePolicy,String>
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
int
hashCode()
static LifecyclePolicy
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.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.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.common.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
public static LifecyclePolicy parse(org.elasticsearch.common.xcontent.XContentParser parser, String name) -
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.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-