Class ClusterStatsRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, TaskAwareRequest

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

    • ClusterStatsRequest

      public ClusterStatsRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • ClusterStatsRequest

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

    • createTask

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

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class BaseNodesRequest<ClusterStatsRequest>
      Throws:
      java.io.IOException