Class ClusterStatsRequest

All Implemented Interfaces:
Writeable, RefCounted, TaskAwareRequest

public class ClusterStatsRequest extends BaseNodesRequest<ClusterStatsRequest>
A request to get cluster level stats.
  • Constructor Details

    • ClusterStatsRequest

      public ClusterStatsRequest(String... nodesIds)
      Get stats from nodes based on the nodes ids specified. If none are passed, stats based on all nodes will be returned.
    • ClusterStatsRequest

      public ClusterStatsRequest(boolean doRemotes, String... nodesIds)
  • Method Details

    • createTask

      public Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String,String> headers)
      Description copied from interface: TaskAwareRequest
      Returns the task object that should be used to keep track of the processing of the request.
    • newRemoteClusterStatsRequest

      public static ClusterStatsRequest newRemoteClusterStatsRequest()
    • doRemotes

      public boolean doRemotes()
      Should the remote cluster stats be included in the response.
    • isRemoteStats

      public boolean isRemoteStats()
      Should the response be a stripped down version of the stats for remote clusters.