public class ShardsSyncedFlushResult extends Object implements Streamable
Constructor and Description |
---|
ShardsSyncedFlushResult(ShardId shardId,
int totalShards,
String failureReason)
failure constructor
|
ShardsSyncedFlushResult(ShardId shardId,
String syncId,
int totalShards,
Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)
success constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
failed() |
Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> |
failedShards() |
String |
failureReason() |
ShardId |
getShardId() |
void |
readFrom(StreamInput in) |
static ShardsSyncedFlushResult |
readShardsSyncedFlushResult(StreamInput in) |
ShardId |
shardId() |
Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> |
shardResponses() |
int |
successfulShards() |
String |
syncId() |
int |
totalShards() |
void |
writeTo(StreamOutput out) |
public ShardsSyncedFlushResult(ShardId shardId, int totalShards, String failureReason)
public ShardsSyncedFlushResult(ShardId shardId, String syncId, int totalShards, Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)
public ShardId getShardId()
public boolean failed()
failureReason()
can be used for
more detailspublic String failureReason()
public String syncId()
public int totalShards()
public int successfulShards()
public Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> failedShards()
public Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses()
public ShardId shardId()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public static ShardsSyncedFlushResult readShardsSyncedFlushResult(StreamInput in) throws IOException
IOException
Copyright © 2009–2017. All rights reserved.