Package org.elasticsearch.client.core
Class BroadcastResponse
java.lang.Object
org.elasticsearch.client.core.BroadcastResponse
- Direct Known Subclasses:
DataStreamsStatsResponse
,ReloadAnalyzersResponse
Represents a response to a request that is broadcast to a collection of shards.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the results of a collection of shards on which a request was executed against. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends BroadcastResponse>
voiddeclareShardsField
(org.elasticsearch.xcontent.ConstructingObjectParser<T, Void> parser) static BroadcastResponse
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) Parses a broadcast response.shards()
Represents the shard-level summary of the response execution.
-
Constructor Details
-
BroadcastResponse
-
-
Method Details
-
shards
Represents the shard-level summary of the response execution.- Returns:
- the shard-level response summary
-
fromXContent
public static BroadcastResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException Parses a broadcast response.- Parameters:
parser
- the parser- Returns:
- a broadcast response parsed from the specified parser
- Throws:
IOException
- if an I/O exception occurs parsing the response
-
declareShardsField
protected static <T extends BroadcastResponse> void declareShardsField(org.elasticsearch.xcontent.ConstructingObjectParser<T, Void> parser)
-