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