Package org.elasticsearch.client.watcher
Class WatcherStatsResponse
java.lang.Object
org.elasticsearch.client.watcher.WatcherStatsResponse
public class WatcherStatsResponse
extends java.lang.Object
The response from an 'ack watch' request.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWatcherStatsResponse.Node -
Constructor Summary
Constructors Constructor Description WatcherStatsResponse(NodesResponseHeader header, java.lang.String clusterName, WatcherMetadata watcherMetadata, java.util.List<WatcherStatsResponse.Node> nodes) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static WatcherStatsResponsefromXContent(org.elasticsearch.common.xcontent.XContentParser 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.java.util.List<WatcherStatsResponse.Node>getNodes()returns a list of nodes that returned statsWatcherMetadatagetWatcherMetadata()inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WatcherStatsResponse
public WatcherStatsResponse(NodesResponseHeader header, java.lang.String clusterName, WatcherMetadata watcherMetadata, java.util.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
public java.lang.String 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 java.io.IOException- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-