public class RecoveryResponse extends BroadcastResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
RecoveryResponse() |
RecoveryResponse(int totalShards,
int successfulShards,
int failedShards,
boolean detailed,
Map<String,List<RecoveryState>> shardRecoveryStates,
List<ShardOperationFailedException> shardFailures)
Constructs recovery information for a collection of indices and associated shards.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
detailed() |
void |
detailed(boolean detailed) |
boolean |
hasRecoveries() |
void |
readFrom(StreamInput in) |
Map<String,List<RecoveryState>> |
shardRecoveryStates() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getFailedShards, getShardFailures, getSuccessfulShards, getTotalShardsremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic RecoveryResponse()
public RecoveryResponse(int totalShards,
int successfulShards,
int failedShards,
boolean detailed,
Map<String,List<RecoveryState>> shardRecoveryStates,
List<ShardOperationFailedException> shardFailures)
totalShards - Total count of shards seensuccessfulShards - Count of shards successfully processedfailedShards - Count of shards which failed to processdetailed - Display detailed metricsshardRecoveryStates - Map of indices to shard recovery informationshardFailures - List of failures processing shardspublic boolean hasRecoveries()
public boolean detailed()
public void detailed(boolean detailed)
public Map<String,List<RecoveryState>> shardRecoveryStates()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastResponseIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastResponseIOExceptionCopyright © 2009–2017. All rights reserved.