Package org.elasticsearch.client
Class NodesResponse
java.lang.Object
org.elasticsearch.client.NodesResponse
- Direct Known Subclasses:
SecurityNodesResponse
Base class for responses that are node responses. These responses always contain the cluster
name and the
NodesResponseHeader
.-
Constructor Summary
ModifierConstructorDescriptionprotected
NodesResponse
(NodesResponseHeader header, String clusterName) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends NodesResponse>
voiddeclareCommonNodesResponseParsing
(org.elasticsearch.xcontent.ConstructingObjectParser<T, Void> parser) Get the cluster name associated with all of the nodes.Gets information about the number of total, successful and failed nodes the request was run on.
-
Constructor Details
-
NodesResponse
-
-
Method Details
-
getClusterName
Get the cluster name associated with all of the nodes.- Returns:
- Never
null
.
-
getHeader
Gets information about the number of total, successful and failed nodes the request was run on. Also includes exceptions if relevant. -
declareCommonNodesResponseParsing
public static <T extends NodesResponse> void declareCommonNodesResponseParsing(org.elasticsearch.xcontent.ConstructingObjectParser<T, Void> parser)
-