Class NodesUsageRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest

public class NodesUsageRequest extends BaseNodesRequest<NodesUsageRequest>
  • Constructor Details

    • NodesUsageRequest

      public NodesUsageRequest(StreamInput in) throws IOException
      Throws:
      IOException
    • NodesUsageRequest

      public NodesUsageRequest(String... nodesIds)
      Get usage from nodes based on the nodes ids specified. If none are passed, usage for all nodes will be returned.
  • Method Details

    • all

      public NodesUsageRequest all()
      Sets all the request flags.
    • clear

      public NodesUsageRequest clear()
      Clears all the request flags.
    • restActions

      public boolean restActions()
      Should the node rest actions usage statistics be returned.
    • restActions

      public NodesUsageRequest restActions(boolean restActions)
      Should the node rest actions usage statistics be returned.
    • aggregations

      public boolean aggregations()
      Should the node rest actions usage statistics be returned.
    • aggregations

      public NodesUsageRequest aggregations(boolean aggregations)
      Should the node rest actions usage statistics be returned.
    • writeTo

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