org.elasticsearch.action.support.broadcast
Class BroadcastOperationResponse

java.lang.Object
  extended by org.elasticsearch.action.support.broadcast.BroadcastOperationResponse
All Implemented Interfaces:
ActionResponse, Streamable
Direct Known Subclasses:
ClearIndicesCacheResponse, CountResponse, FlushResponse, GatewaySnapshotResponse, IndicesSegmentResponse, IndicesStats, IndicesStatusResponse, OptimizeResponse, RefreshResponse, ValidateQueryResponse

public abstract class BroadcastOperationResponse
extends Object
implements ActionResponse

Base class for all broadcast operation based responses.


Constructor Summary
protected BroadcastOperationResponse()
           
protected BroadcastOperationResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationFailedException> shardFailures)
           
 
Method Summary
 int failedShards()
          The failed shards this request was executed on.
 int getFailedShards()
          The failed shards this request was executed on.
 List<ShardOperationFailedException> getShardFailures()
          The list of shard failures exception.
 int getSuccessfulShards()
          The successful shards this request was executed on.
 int getTotalShards()
          The total shards this request ran against.
 void readFrom(StreamInput in)
           
 List<? extends ShardOperationFailedException> shardFailures()
          The list of shard failures exception.
 int successfulShards()
          The successful shards this request was executed on.
 int totalShards()
          The total shards this request ran against.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcastOperationResponse

protected BroadcastOperationResponse()

BroadcastOperationResponse

protected BroadcastOperationResponse(int totalShards,
                                     int successfulShards,
                                     int failedShards,
                                     List<ShardOperationFailedException> shardFailures)
Method Detail

totalShards

public int totalShards()
The total shards this request ran against.


getTotalShards

public int getTotalShards()
The total shards this request ran against.


successfulShards

public int successfulShards()
The successful shards this request was executed on.


getSuccessfulShards

public int getSuccessfulShards()
The successful shards this request was executed on.


failedShards

public int failedShards()
The failed shards this request was executed on.


getFailedShards

public int getFailedShards()
The failed shards this request was executed on.


shardFailures

public List<? extends ShardOperationFailedException> shardFailures()
The list of shard failures exception.


getShardFailures

public List<ShardOperationFailedException> getShardFailures()
The list of shard failures exception.


readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.