public abstract class BroadcastOperationResponse extends ActionResponse
TransportResponse.Empty
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) |
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
protected 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 Streamable
readFrom
in class ActionResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
Copyright © 2009–2015. All rights reserved.