Class WatcherNodeStats.Builder
- All Implemented Interfaces:
WithJson<WatcherNodeStats.Builder>
,ObjectBuilder<WatcherNodeStats>
- Enclosing class:
- WatcherNodeStats
WatcherNodeStats
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aWatcherNodeStats
.final WatcherNodeStats.Builder
currentWatches
(WatchRecordStats value, WatchRecordStats... values) The current executing watches metric gives insight into the watches that are currently being executed by Watcher.final WatcherNodeStats.Builder
The current executing watches metric gives insight into the watches that are currently being executed by Watcher.final WatcherNodeStats.Builder
currentWatches
(List<WatchRecordStats> list) The current executing watches metric gives insight into the watches that are currently being executed by Watcher.final WatcherNodeStats.Builder
Required - API name:execution_thread_pool
final WatcherNodeStats.Builder
Required - API name:execution_thread_pool
final WatcherNodeStats.Builder
Required - API name:node_id
final WatcherNodeStats.Builder
queuedWatches
(WatchRecordQueuedStats value, WatchRecordQueuedStats... values) Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.final WatcherNodeStats.Builder
Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.final WatcherNodeStats.Builder
Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.protected WatcherNodeStats.Builder
self()
final WatcherNodeStats.Builder
watchCount
(long value) Required - The number of watches currently registered.final WatcherNodeStats.Builder
watcherState
(WatcherState value) Required - The current state of Watcher.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
currentWatches
The current executing watches metric gives insight into the watches that are currently being executed by Watcher. Additional information is shared per watch that is currently executing. This information includes thewatch_id
, the time its execution started and its current execution phase. To include this metric, themetric
option should be set tocurrent_watches
or_all
. In addition you can also specify theemit_stacktraces=true
parameter, which adds stack traces for each watch that is being run. These stack traces can give you more insight into an execution of a watch.API name:
current_watches
Adds all elements of
list
tocurrentWatches
. -
currentWatches
public final WatcherNodeStats.Builder currentWatches(WatchRecordStats value, WatchRecordStats... values) The current executing watches metric gives insight into the watches that are currently being executed by Watcher. Additional information is shared per watch that is currently executing. This information includes thewatch_id
, the time its execution started and its current execution phase. To include this metric, themetric
option should be set tocurrent_watches
or_all
. In addition you can also specify theemit_stacktraces=true
parameter, which adds stack traces for each watch that is being run. These stack traces can give you more insight into an execution of a watch.API name:
current_watches
Adds one or more values to
currentWatches
. -
currentWatches
public final WatcherNodeStats.Builder currentWatches(Function<WatchRecordStats.Builder, ObjectBuilder<WatchRecordStats>> fn) The current executing watches metric gives insight into the watches that are currently being executed by Watcher. Additional information is shared per watch that is currently executing. This information includes thewatch_id
, the time its execution started and its current execution phase. To include this metric, themetric
option should be set tocurrent_watches
or_all
. In addition you can also specify theemit_stacktraces=true
parameter, which adds stack traces for each watch that is being run. These stack traces can give you more insight into an execution of a watch.API name:
current_watches
Adds a value to
currentWatches
using a builder lambda. -
executionThreadPool
Required - API name:execution_thread_pool
-
executionThreadPool
public final WatcherNodeStats.Builder executionThreadPool(Function<ExecutionThreadPool.Builder, ObjectBuilder<ExecutionThreadPool>> fn) Required - API name:execution_thread_pool
-
queuedWatches
Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources. If too many watches trigger concurrently and there isn't enough capacity to run them all, some of the watches are queued, waiting for the current running watches to finish.s The queued watches metric gives insight on these queued watches.To include this metric, the
metric
option should includequeued_watches
or_all
.API name:
queued_watches
Adds all elements of
list
toqueuedWatches
. -
queuedWatches
public final WatcherNodeStats.Builder queuedWatches(WatchRecordQueuedStats value, WatchRecordQueuedStats... values) Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources. If too many watches trigger concurrently and there isn't enough capacity to run them all, some of the watches are queued, waiting for the current running watches to finish.s The queued watches metric gives insight on these queued watches.To include this metric, the
metric
option should includequeued_watches
or_all
.API name:
queued_watches
Adds one or more values to
queuedWatches
. -
queuedWatches
public final WatcherNodeStats.Builder queuedWatches(Function<WatchRecordQueuedStats.Builder, ObjectBuilder<WatchRecordQueuedStats>> fn) Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources. If too many watches trigger concurrently and there isn't enough capacity to run them all, some of the watches are queued, waiting for the current running watches to finish.s The queued watches metric gives insight on these queued watches.To include this metric, the
metric
option should includequeued_watches
or_all
.API name:
queued_watches
Adds a value to
queuedWatches
using a builder lambda. -
watchCount
Required - The number of watches currently registered.API name:
watch_count
-
watcherState
Required - The current state of Watcher.API name:
watcher_state
-
nodeId
Required - API name:node_id
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<WatcherNodeStats.Builder>
-
build
Builds aWatcherNodeStats
.- Specified by:
build
in interfaceObjectBuilder<WatcherNodeStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-