public class RecoveryResponse extends BroadcastResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| コンストラクタと説明 |
|---|
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.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 インタフェース内 ToXContentIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 BroadcastResponseIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamablereadFrom クラス内 BroadcastResponseIOExceptionCopyright © 2009–2016. All rights reserved.