public abstract class BroadcastOperationResponse extends ActionResponse
TransportResponse.Emptyheaders| Modifier | Constructor and Description |
|---|---|
protected |
BroadcastOperationResponse() |
protected |
BroadcastOperationResponse(int totalShards,
int successfulShards,
int failedShards,
List<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) |
putHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextprotected BroadcastOperationResponse()
protected BroadcastOperationResponse(int totalShards,
int successfulShards,
int failedShards,
List<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–2016. All rights reserved.