Class HotThreadsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.HotThreadsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<HotThreadsRequest>
- Enclosing class:
HotThreadsRequest
public static class HotThreadsRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<HotThreadsRequest>
Builder for
HotThreadsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHotThreadsRequest.Period to wait for a connection to the cluster-manager node.clusterManagerTimeout(Time value) Period to wait for a connection to the cluster-manager node.ignoreIdleThreads(Boolean value) If true, known idle threads (e.g.The interval to do the second sampling of threads.The interval to do the second sampling of threads.Deprecated.masterTimeout(Time value) Deprecated.List of node IDs or names used to limit returned information.List of node IDs or names used to limit returned information.Number of samples of thread stacktrace.Specifies the number of hot threads to provide information for.Period to wait for a response.Period to wait for a response.type(ThreadType value) The type to sample.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ignoreIdleThreads
If true, known idle threads (e.g. waiting in a socket select, or to get a task from an empty queue) are filtered out.API name:
ignore_idle_threads -
interval
The interval to do the second sampling of threads.API name:
interval -
interval
The interval to do the second sampling of threads.API name:
interval -
masterTimeout
Deprecated.Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
@Deprecated public final HotThreadsRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
clusterManagerTimeout
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
cluster_manager_timeout -
clusterManagerTimeout
public final HotThreadsRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
cluster_manager_timeout -
nodeId
List of node IDs or names used to limit returned information.API name:
node_idAdds all elements of
listtonodeId. -
nodeId
List of node IDs or names used to limit returned information.API name:
node_idAdds one or more values to
nodeId. -
snapshots
Number of samples of thread stacktrace.API name:
snapshots -
threads
Specifies the number of hot threads to provide information for.API name:
threads -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
type
The type to sample.API name:
type -
build
Builds aHotThreadsRequest.- Specified by:
buildin interfaceObjectBuilder<HotThreadsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-