public class SyncedFlushResponse extends ActionResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
SyncedFlushResponse(Map<String,List<ShardsSyncedFlushResult>> shardsResultPerIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
failedShards()
total number of shards for which the operation failed
|
Map<String,List<ShardsSyncedFlushResult>> |
getShardsResultPerIndex() |
void |
readFrom(StreamInput in) |
RestStatus |
restStatus() |
int |
successfulShards()
total number of shards which were successfully sync-flushed
|
int |
totalShards()
total number shards, including replicas, both assigned and unassigned
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic SyncedFlushResponse(Map<String,List<ShardsSyncedFlushResult>> shardsResultPerIndex)
public int totalShards()
public int failedShards()
public int successfulShards()
public RestStatus restStatus()
public Map<String,List<ShardsSyncedFlushResult>> getShardsResultPerIndex()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2017. All rights reserved.