Package org.elasticsearch.indices.flush
Class ShardsSyncedFlushResult
java.lang.Object
org.elasticsearch.indices.flush.ShardsSyncedFlushResult
- All Implemented Interfaces:
- Writeable
Result for all copies of a shard
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Constructor SummaryConstructorsConstructorDescriptionShardsSyncedFlushResult(ShardId shardId, int totalShards, String failureReason)failure constructorShardsSyncedFlushResult(ShardId shardId, String syncId, int totalShards, Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)success constructor
- 
Method SummaryModifier and TypeMethodDescriptionbooleanfailed()shardId()intsyncId()intvoidwriteTo(StreamOutput out)Write this into the StreamOutput.
- 
Constructor Details- 
ShardsSyncedFlushResult- Throws:
- IOException
 
- 
ShardsSyncedFlushResultfailure constructor
- 
ShardsSyncedFlushResultpublic ShardsSyncedFlushResult(ShardId shardId, String syncId, int totalShards, Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)success constructor
 
- 
- 
Method Details- 
getShardId
- 
failedpublic boolean failed()- Returns:
- true if the operation failed before reaching step three of synced flush. failureReason()can be used for more details
 
- 
failureReason- Returns:
- the reason for the failure if synced flush failed before step three of synced flush
 
- 
syncId
- 
totalShardspublic int totalShards()- Returns:
- total number of shards for which a sync attempt was made
 
- 
successfulShardspublic int successfulShards()- Returns:
- total number of successful shards
 
- 
failedShards- Returns:
- an array of shard failures
 
- 
shardResponses- Returns:
- Individual responses for each shard copy with a detailed failure message if the copy failed to perform the synced flush. Empty if synced flush failed before step three.
 
- 
shardId
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
 
-