Package org.elasticsearch.client.feature
Class ResetFeaturesResponse.ResetFeatureStateStatus
java.lang.Object
org.elasticsearch.client.feature.ResetFeaturesResponse.ResetFeatureStateStatus
- Enclosing class:
- ResetFeaturesResponse
public static class ResetFeaturesResponse.ResetFeatureStateStatus
extends java.lang.Object
A class representing the status of an attempt to reset a feature's state.
The attempt to reset either succeeds and we return the name of the
feature and a success flag; or it fails and we return the name of the feature,
a status flag, and the exception thrown during the attempt to reset the feature.
-
Method Summary
Modifier and Type Method Description java.lang.Exception
getException()
java.lang.String
getFeatureName()
java.lang.String
getStatus()
static ResetFeaturesResponse.ResetFeatureStateStatus
parse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.Void ctx)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
parse
public static ResetFeaturesResponse.ResetFeatureStateStatus parse(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.Void ctx) -
getFeatureName
public java.lang.String getFeatureName()- Returns:
- Name of the feature that we tried to reset
-
getStatus
public java.lang.String getStatus()- Returns:
- "SUCCESS" if the reset attempt succeeded, "FAILURE" otherwise.
-
getException
@Nullable public java.lang.Exception getException()- Returns:
- The exception that caused the reset attempt to fail.
-