Class ThreadPoolRecord.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cat.thread_pool.ThreadPoolRecord.Builder
- All Implemented Interfaces:
CopyableBuilder<ThreadPoolRecord.Builder,,ThreadPoolRecord> MutableBuilder<ThreadPoolRecord.Builder,,ThreadPoolRecord> ObjectBuilder<ThreadPoolRecord>
- Enclosing class:
ThreadPoolRecord
public static class ThreadPoolRecord.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ThreadPoolRecord.Builder,ThreadPoolRecord>
Builder for
ThreadPoolRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ThreadPoolRecord.BuilderThe number of active threads in the current thread pool.build()Builds aThreadPoolRecord.final ThreadPoolRecord.BuilderThe number of completed tasks.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ThreadPoolRecord.BuilderThe core number of active threads allowed in a scaling thread pool.final ThreadPoolRecord.BuilderephemeralNodeId(String value) The ephemeral node identifier.final ThreadPoolRecord.BuilderThe hostname for the current node.final ThreadPoolRecord.BuilderThe IP address for the current node.final ThreadPoolRecord.BuilderThe thread keep alive time.final ThreadPoolRecord.BuilderThe highest number of active threads in the current thread pool.final ThreadPoolRecord.BuilderThe maximum number of active threads allowed in a scaling thread pool.final ThreadPoolRecord.BuilderThe thread pool name.final ThreadPoolRecord.BuilderAPI name:node_idfinal ThreadPoolRecord.BuilderThe node name.final ThreadPoolRecord.BuilderThe process identifier.final ThreadPoolRecord.BuilderThe number of threads in the current thread pool.final ThreadPoolRecord.BuilderThe bound transport port for the current node.final ThreadPoolRecord.BuilderThe number of tasks currently in queue.final ThreadPoolRecord.BuilderThe maximum number of tasks permitted in the queue.final ThreadPoolRecord.BuilderThe number of rejected tasks.final ThreadPoolRecord.BuilderThe number of active threads allowed in a fixed thread pool.final ThreadPoolRecord.BuildertotalWaitTime(String value) API name:total_wait_timefinal ThreadPoolRecord.BuilderThe thread pool type.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ThreadPoolRecord.Builder,ThreadPoolRecord> - Returns:
- a new builder instance.
-
active
The number of active threads in the current thread pool.API name:
active -
completed
The number of completed tasks.API name:
completed -
core
The core number of active threads allowed in a scaling thread pool.API name:
core -
ephemeralNodeId
The ephemeral node identifier.API name:
ephemeral_node_id -
host
The hostname for the current node.API name:
host -
ip
The IP address for the current node.API name:
ip -
keepAlive
The thread keep alive time.API name:
keep_alive -
largest
The highest number of active threads in the current thread pool.API name:
largest -
max
The maximum number of active threads allowed in a scaling thread pool.API name:
max -
name
The thread pool name.API name:
name -
nodeId
API name:node_id -
nodeName
The node name.API name:
node_name -
pid
The process identifier.API name:
pid -
poolSize
The number of threads in the current thread pool.API name:
pool_size -
port
The bound transport port for the current node.API name:
port -
queue
The number of tasks currently in queue.API name:
queue -
queueSize
The maximum number of tasks permitted in the queue.API name:
queue_size -
rejected
The number of rejected tasks.API name:
rejected -
size
The number of active threads allowed in a fixed thread pool.API name:
size -
totalWaitTime
API name:total_wait_time -
type
The thread pool type. Returned values includefixed,fixed_auto_queue_size,direct, andscaling.API name:
type -
build
Builds aThreadPoolRecord.- Specified by:
buildin interfaceObjectBuilder<ThreadPoolRecord>- Throws:
NullPointerException- if some of the required fields are null.
-