public class SyncedFlushResponse extends ActionResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
headers
EMPTY_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, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public 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 ToXContent
IOException
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.