org.elasticsearch.action.support.nodes
Class NodesOperationResponse<NodeResponse extends NodeOperationResponse>

java.lang.Object
  extended by org.elasticsearch.action.support.nodes.NodesOperationResponse<NodeResponse>
All Implemented Interfaces:
Iterable<NodeResponse>, ActionResponse, Streamable
Direct Known Subclasses:
NodesHotThreadsResponse, NodesInfoResponse, NodesRestartResponse, NodesStatsResponse, TransportNodesListGatewayMetaState.NodesLocalGatewayMetaState, TransportNodesListGatewayStartedShards.NodesLocalGatewayStartedShards, TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData

public abstract class NodesOperationResponse<NodeResponse extends NodeOperationResponse>
extends Object
implements ActionResponse, Iterable<NodeResponse>


Field Summary
protected  NodeResponse[] nodes
           
 
Constructor Summary
protected NodesOperationResponse()
           
protected NodesOperationResponse(ClusterName clusterName, NodeResponse[] nodes)
           
 
Method Summary
 ClusterName clusterName()
           
 NodeResponse getAt(int position)
           
 String getClusterName()
           
 NodeResponse[] getNodes()
           
 Map<String,NodeResponse> getNodesMap()
           
 Iterator<NodeResponse> iterator()
           
 NodeResponse[] nodes()
           
 Map<String,NodeResponse> nodesMap()
           
 void readFrom(StreamInput in)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected NodeResponse extends NodeOperationResponse[] nodes
Constructor Detail

NodesOperationResponse

protected NodesOperationResponse()

NodesOperationResponse

protected NodesOperationResponse(ClusterName clusterName,
                                 NodeResponse[] nodes)
Method Detail

clusterName

public ClusterName clusterName()

getClusterName

public String getClusterName()

nodes

public NodeResponse[] nodes()

getNodes

public NodeResponse[] getNodes()

getAt

public NodeResponse getAt(int position)

iterator

public Iterator<NodeResponse> iterator()
Specified by:
iterator in interface Iterable<NodeResponse extends NodeOperationResponse>

nodesMap

public Map<String,NodeResponse> nodesMap()

getNodesMap

public Map<String,NodeResponse> getNodesMap()

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.