Package org.elasticsearch.client.watcher
Class WatcherStatsResponse
- java.lang.Object
-
- org.elasticsearch.client.watcher.WatcherStatsResponse
-
public class WatcherStatsResponse extends 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, String clusterName, WatcherMetaData watcherMetaData, List<WatcherStatsResponse.Node> nodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static WatcherStatsResponsefromXContent(XContentParser parser)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.List<WatcherStatsResponse.Node>getNodes()returns a list of nodes that returned statsWatcherMetaDatagetWatcherMetaData()inthashCode()
-
-
-
Constructor Detail
-
WatcherStatsResponse
public WatcherStatsResponse(NodesResponseHeader header, String clusterName, WatcherMetaData watcherMetaData, List<WatcherStatsResponse.Node> nodes)
-
-
Method Detail
-
getWatcherMetaData
public WatcherMetaData getWatcherMetaData()
- Returns:
- the status of the requested watch. If an action was successfully acknowledged, this will be reflected in its status.
-
getNodes
public List<WatcherStatsResponse.Node> getNodes()
returns a list of nodes that returned stats
-
getHeader
public NodesResponseHeader getHeader()
Gets information about the number of total, successful and failed nodes the request was run on. Also includes exceptions if relevant.
-
getClusterName
public String getClusterName()
Get the cluster name associated with all of the nodes.- Returns:
- Never
null.
-
fromXContent
public static WatcherStatsResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-