Package org.elasticsearch.client.watcher
Class WatcherStatsResponse
java.lang.Object
org.elasticsearch.client.watcher.WatcherStatsResponse
The response from an 'ack watch' request.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionWatcherStatsResponse(NodesResponseHeader header, String clusterName, WatcherMetadata watcherMetadata, List<WatcherStatsResponse.Node> nodes)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static WatcherStatsResponse
fromXContent(org.elasticsearch.common.xcontent.XContentParser 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.getNodes()
returns a list of nodes that returned statsint
hashCode()
-
Constructor Details
-
WatcherStatsResponse
public WatcherStatsResponse(NodesResponseHeader header, String clusterName, WatcherMetadata watcherMetadata, List<WatcherStatsResponse.Node> nodes)
-
-
Method Details
-
getWatcherMetadata
- Returns:
- the status of the requested watch. If an action was successfully acknowledged, this will be reflected in its status.
-
getNodes
returns a list of nodes that returned stats -
getHeader
Gets information about the number of total, successful and failed nodes the request was run on. Also includes exceptions if relevant. -
getClusterName
Get the cluster name associated with all of the nodes.- Returns:
- Never
null
.
-
fromXContent
public static WatcherStatsResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-