public class BroadcastResponse extends ActionResponse
TransportResponse.Emptyheaders| Constructor and Description |
|---|
BroadcastResponse() |
BroadcastResponse(int totalShards,
int successfulShards,
int failedShards,
List<? extends ShardOperationFailedException> shardFailures) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFailedShards()
The failed shards this request was executed on.
|
ShardOperationFailedException[] |
getShardFailures()
The list of shard failures exception.
|
int |
getSuccessfulShards()
The successful shards this request was executed on.
|
int |
getTotalShards()
The total shards this request ran against.
|
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic BroadcastResponse()
public BroadcastResponse(int totalShards,
int successfulShards,
int failedShards,
List<? extends ShardOperationFailedException> shardFailures)
public int getTotalShards()
public int getSuccessfulShards()
public int getFailedShards()
public ShardOperationFailedException[] getShardFailures()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2017. All rights reserved.