Package org.elasticsearch.action.support
Class DefaultShardOperationFailedException
org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.action.support.DefaultShardOperationFailedException
- All Implemented Interfaces:
,
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
- Direct Known Subclasses:
AddIndexBlockResponse.AddBlockShardResult.Failure
,CloseIndexResponse.ShardResult.Failure
,IndicesShardStoresResponse.Failure
public class DefaultShardOperationFailedException
extends ShardOperationFailedException
implements Writeable
- See Also:
- Serialized Form
-
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
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<>
Fields inherited from class org.elasticsearch.action.ShardOperationFailedException
cause, index, reason, shardId, status
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ModifierConstructorDescriptionprotected
index, int shardId, cause)
protected
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends DefaultShardOperationFailedException>
void> objectParser)
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
protected org.elasticsearch.common.xcontent.XContentBuilder
innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
static void
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ShardOperationFailedException
getCause, index, reason, shardId, status
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from class java.lang.
, , , , , , , , ,
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<> PARSER
-
-
Constructor Details
-
DefaultShardOperationFailedException
protected DefaultShardOperationFailedException() -
DefaultShardOperationFailedException
- Throws:
-
DefaultShardOperationFailedException
-
DefaultShardOperationFailedException
public DefaultShardOperationFailedException( index, int shardId, cause)
-
-
Method Details
-
declareFields
protected static <T extends DefaultShardOperationFailedException> void declareFields(org.elasticsearch.common.xcontent.ConstructingObjectParser<T,> objectParser) -
readShardOperationFailed
- Throws:
-
readFrom
- Throws:
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
toString
public toString()- Overrides:
in class
-
toXContent
public final org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
-
innerToXContent
protected org.elasticsearch.common.xcontent.XContentBuilder innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws- Throws:
-
fromXContent
public static DefaultShardOperationFailedException fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
-