Package org.elasticsearch.client.feature
Class ResetFeaturesResponse.ResetFeatureStateStatus
java.lang.Object
org.elasticsearch.client.feature.ResetFeaturesResponse.ResetFeatureStateStatus
- Enclosing class:
- ResetFeaturesResponse
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 TypeMethodDescription
-
Method Details
-
parse
public static ResetFeaturesResponse.ResetFeatureStateStatus parse(org.elasticsearch.xcontent.XContentParser parser, Void ctx) -
getFeatureName
- Returns:
- Name of the feature that we tried to reset
-
getStatus
- Returns:
- "SUCCESS" if the reset attempt succeeded, "FAILURE" otherwise.
-
getException
- Returns:
- The exception that caused the reset attempt to fail.
-