Class SetPriorityAction
java.lang.Object
org.elasticsearch.client.indexlifecycle.SetPriorityAction
- All Implemented Interfaces:
LifecycleAction,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class SetPriorityAction extends java.lang.Object implements LifecycleAction, org.elasticsearch.common.xcontent.ToXContentObject
A
LifecycleAction which sets the index's priority. The higher the priority, the faster the recovery.-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME -
Constructor Summary
Constructors Constructor Description SetPriorityAction(java.lang.Integer recoveryPriority) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()inthashCode()static SetPriorityActionparse(org.elasticsearch.common.xcontent.XContentParser parser)java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetPriorityAction
public SetPriorityAction(@Nullable java.lang.Integer recoveryPriority)
-
-
Method Details
-
parse
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceLifecycleAction- Returns:
- the name of this action
-