Streamablepublic class ShardsSyncedFlushResult extends java.lang.Object implements Streamable
| Constructor | Description |
|---|---|
ShardsSyncedFlushResult(ShardId shardId,
int totalShards,
java.lang.String failureReason) |
failure constructor
|
ShardsSyncedFlushResult(ShardId shardId,
java.lang.String syncId,
int totalShards,
java.util.Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses) |
success constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
failed() |
|
java.util.Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> |
failedShards() |
|
java.lang.String |
failureReason() |
|
ShardId |
getShardId() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
static ShardsSyncedFlushResult |
readShardsSyncedFlushResult(StreamInput in) |
|
ShardId |
shardId() |
|
java.util.Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> |
shardResponses() |
|
int |
successfulShards() |
|
java.lang.String |
syncId() |
|
int |
totalShards() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReaderpublic ShardsSyncedFlushResult(ShardId shardId, int totalShards, java.lang.String failureReason)
public ShardsSyncedFlushResult(ShardId shardId, java.lang.String syncId, int totalShards, java.util.Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)
public ShardId getShardId()
public boolean failed()
failureReason() can be used for
more detailspublic java.lang.String failureReason()
public java.lang.String syncId()
public int totalShards()
public int successfulShards()
public java.util.Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> failedShards()
public java.util.Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses()
public ShardId shardId()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic static ShardsSyncedFlushResult readShardsSyncedFlushResult(StreamInput in) throws java.io.IOException
java.io.IOException