public Builder waitForStatus(Status status) { return waitForStatus(status.getKey()); }
/** * For debugging purposes, you can retrieve the cluster state local to a particular node. */ public Builder local() { return addCleanApiParameter("local"); }
/** * number of hot threads to provide, defaults to 3 */ public Builder threads(Integer value) { return setParameter("threads", value); }
/** * Statistics about each thread pool, including current size, queue and rejected tasks */ public Builder withThreadPool() { return addCleanApiParameter("thread_pool"); }
@Override public Reroute build() { return new Reroute(this); } }
@Override public PendingClusterTasks build() { return new PendingClusterTasks(this); } }
@Override public UpdateSettings build() { return new UpdateSettings(this); } }
@Override public Stats build() { return new Stats(this); } }
@Override public NodesStats build() { return new NodesStats(this); } }
@Override public GetSettings build() { return new GetSettings(this); } }
@Override public Health build() { return new Health(this); } }
@Override public NodesShutdown build() { return new NodesShutdown(this); } }
@Override public TasksInformation build() { return new TasksInformation(this); } }
/** * Shows the cluster state version. */ public Builder withVersion() { return addCleanApiParameter("version"); }
/** * the interval to do the second sampling of threads. Defaults to 500ms */ public Builder interval(String value) { return setParameter("interval", value); }
/** * File system information, data path, free disk space, read/write stats */ public Builder withFs() { return addCleanApiParameter("fs"); }
/** * Shows the metadata part of the response. */ public Builder withMetadata() { return addCleanApiParameter("metadata"); }
/** * The type to sample, defaults to cpu, but supports wait and block to see hot threads that are in wait or block state */ public Builder type(String value) { return setParameter("type", value); }
/** * Shows the elected master_node part of the response. */ public Builder withMasterNode() { return addCleanApiParameter("master_node"); }