Package org.elasticsearch.client
Class NodesResponse
java.lang.Object
org.elasticsearch.client.NodesResponse
- Direct Known Subclasses:
SecurityNodesResponse
public abstract class NodesResponse
extends java.lang.Object
Base class for responses that are node responses. These responses always contain the cluster
name and the
NodesResponseHeader.-
Constructor Summary
Constructors Modifier Constructor Description protectedNodesResponse(NodesResponseHeader header, java.lang.String clusterName) -
Method Summary
Modifier and Type Method Description static <T extends NodesResponse>
voiddeclareCommonNodesResponseParsing(org.elasticsearch.common.xcontent.ConstructingObjectParser<T,java.lang.Void> parser)java.lang.StringgetClusterName()Get the cluster name associated with all of the nodes.NodesResponseHeadergetHeader()Gets information about the number of total, successful and failed nodes the request was run on.
-
Constructor Details
-
Method Details
-
getClusterName
public java.lang.String 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.common.xcontent.ConstructingObjectParser<T,java.lang.Void> parser)
-