Class ClusterStateUpdate.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClusterStateUpdate.Builder>
co.elastic.clients.elasticsearch.nodes.ClusterStateUpdate.Builder
- All Implemented Interfaces:
WithJson<ClusterStateUpdate.Builder>
,ObjectBuilder<ClusterStateUpdate>
- Enclosing class:
- ClusterStateUpdate
public static class ClusterStateUpdate.Builder
extends WithJsonObjectBuilderBase<ClusterStateUpdate.Builder>
implements ObjectBuilder<ClusterStateUpdate>
Builder for
ClusterStateUpdate
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aClusterStateUpdate
.commitTime
(Time value) The cumulative amount of time spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.The cumulative amount of time spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.commitTimeMillis
(Long value) The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.completionTime
(Time value) The cumulative amount of time spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.The cumulative amount of time spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.completionTimeMillis
(Long value) The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.computationTime
(Time value) The cumulative amount of time spent computing no-op cluster state updates since the node started.The cumulative amount of time spent computing no-op cluster state updates since the node started.computationTimeMillis
(Long value) The cumulative amount of time, in milliseconds, spent computing no-op cluster state updates since the node started.contextConstructionTime
(Time value) The cumulative amount of time spent constructing a publication context since the node started for publications that ultimately succeeded.The cumulative amount of time spent constructing a publication context since the node started for publications that ultimately succeeded.The cumulative amount of time, in milliseconds, spent constructing a publication context since the node started for publications that ultimately succeeded.count
(long value) Required - The number of cluster state update attempts that did not change the cluster state since the node started.masterApplyTime
(Time value) The cumulative amount of time spent successfully applying cluster state updates on the elected master since the node started.The cumulative amount of time spent successfully applying cluster state updates on the elected master since the node started.masterApplyTimeMillis
(Long value) The cumulative amount of time, in milliseconds, spent successfully applying cluster state updates on the elected master since the node started.notificationTime
(Time value) The cumulative amount of time spent notifying listeners of a no-op cluster state update since the node started.The cumulative amount of time spent notifying listeners of a no-op cluster state update since the node started.notificationTimeMillis
(Long value) The cumulative amount of time, in milliseconds, spent notifying listeners of a no-op cluster state update since the node started.publicationTime
(Time value) The cumulative amount of time spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update.The cumulative amount of time spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update.publicationTimeMillis
(Long value) The cumulative amount of time, in milliseconds, spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update.protected ClusterStateUpdate.Builder
self()
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
-
count
Required - The number of cluster state update attempts that did not change the cluster state since the node started.API name:
count
-
computationTime
The cumulative amount of time spent computing no-op cluster state updates since the node started.API name:
computation_time
-
computationTime
public final ClusterStateUpdate.Builder computationTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The cumulative amount of time spent computing no-op cluster state updates since the node started.API name:
computation_time
-
computationTimeMillis
The cumulative amount of time, in milliseconds, spent computing no-op cluster state updates since the node started.API name:
computation_time_millis
-
publicationTime
The cumulative amount of time spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update. This includes the time measured bycontext_construction_time
,commit_time
,completion_time
andmaster_apply_time
.API name:
publication_time
-
publicationTime
public final ClusterStateUpdate.Builder publicationTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The cumulative amount of time spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update. This includes the time measured bycontext_construction_time
,commit_time
,completion_time
andmaster_apply_time
.API name:
publication_time
-
publicationTimeMillis
The cumulative amount of time, in milliseconds, spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update. This includes the time measured bycontext_construction_time
,commit_time
,completion_time
andmaster_apply_time
.API name:
publication_time_millis
-
contextConstructionTime
The cumulative amount of time spent constructing a publication context since the node started for publications that ultimately succeeded. This statistic includes the time spent computing the difference between the current and new cluster state preparing a serialized representation of this difference.API name:
context_construction_time
-
contextConstructionTime
public final ClusterStateUpdate.Builder contextConstructionTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The cumulative amount of time spent constructing a publication context since the node started for publications that ultimately succeeded. This statistic includes the time spent computing the difference between the current and new cluster state preparing a serialized representation of this difference.API name:
context_construction_time
-
contextConstructionTimeMillis
The cumulative amount of time, in milliseconds, spent constructing a publication context since the node started for publications that ultimately succeeded. This statistic includes the time spent computing the difference between the current and new cluster state preparing a serialized representation of this difference.API name:
context_construction_time_millis
-
commitTime
The cumulative amount of time spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.API name:
commit_time
-
commitTime
The cumulative amount of time spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.API name:
commit_time
-
commitTimeMillis
The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.API name:
commit_time_millis
-
completionTime
The cumulative amount of time spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.API name:
completion_time
-
completionTime
public final ClusterStateUpdate.Builder completionTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The cumulative amount of time spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.API name:
completion_time
-
completionTimeMillis
The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.API name:
completion_time_millis
-
masterApplyTime
The cumulative amount of time spent successfully applying cluster state updates on the elected master since the node started.API name:
master_apply_time
-
masterApplyTime
public final ClusterStateUpdate.Builder masterApplyTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The cumulative amount of time spent successfully applying cluster state updates on the elected master since the node started.API name:
master_apply_time
-
masterApplyTimeMillis
The cumulative amount of time, in milliseconds, spent successfully applying cluster state updates on the elected master since the node started.API name:
master_apply_time_millis
-
notificationTime
The cumulative amount of time spent notifying listeners of a no-op cluster state update since the node started.API name:
notification_time
-
notificationTime
public final ClusterStateUpdate.Builder notificationTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The cumulative amount of time spent notifying listeners of a no-op cluster state update since the node started.API name:
notification_time
-
notificationTimeMillis
The cumulative amount of time, in milliseconds, spent notifying listeners of a no-op cluster state update since the node started.API name:
notification_time_millis
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ClusterStateUpdate.Builder>
-
build
Builds aClusterStateUpdate
.- Specified by:
build
in interfaceObjectBuilder<ClusterStateUpdate>
- Throws:
NullPointerException
- if some of the required fields are null.
-