public abstract class NodesOperationResponse<NodeResponse extends NodeOperationResponse> extends ActionResponse implements Iterable<NodeResponse>
TransportResponse.Empty| Modifier and Type | Field and Description |
|---|---|
protected NodeResponse[] |
nodes |
headers| Modifier | Constructor and Description |
|---|---|
protected |
NodesOperationResponse() |
protected |
NodesOperationResponse(ClusterName clusterName,
NodeResponse[] nodes) |
| Modifier and Type | Method and Description |
|---|---|
FailedNodeException[] |
failures()
The failed nodes, if set to be captured.
|
NodeResponse |
getAt(int position) |
ClusterName |
getClusterName() |
String |
getClusterNameAsString() |
NodeResponse[] |
getNodes() |
Map<String,NodeResponse> |
getNodesMap() |
Iterator<NodeResponse> |
iterator() |
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
putHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected NodeResponse extends NodeOperationResponse[] nodes
protected NodesOperationResponse()
protected NodesOperationResponse(ClusterName clusterName, NodeResponse[] nodes)
@Nullable public FailedNodeException[] failures()
public ClusterName getClusterName()
public String getClusterNameAsString()
public NodeResponse[] getNodes()
public NodeResponse getAt(int position)
public Iterator<NodeResponse> iterator()
iterator in interface Iterable<NodeResponse extends NodeOperationResponse>public Map<String,NodeResponse> getNodesMap()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2016. All rights reserved.