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