Class 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 Details

    • Builder

      public Builder()
  • Method Details

    • count

      public final ClusterStateUpdate.Builder count(long value)
      Required - The number of cluster state update attempts that did not change the cluster state since the node started.

      API name: count

    • computationTime

      public final ClusterStateUpdate.Builder computationTime(@Nullable Time value)
      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

      public final ClusterStateUpdate.Builder computationTimeMillis(@Nullable Long value)
      The cumulative amount of time, in milliseconds, spent computing no-op cluster state updates since the node started.

      API name: computation_time_millis

    • publicationTime

      public final ClusterStateUpdate.Builder publicationTime(@Nullable 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. This includes the time measured by context_construction_time, commit_time, completion_time and master_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 by context_construction_time, commit_time, completion_time and master_apply_time.

      API name: publication_time

    • publicationTimeMillis

      public final ClusterStateUpdate.Builder publicationTimeMillis(@Nullable 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. This includes the time measured by context_construction_time, commit_time, completion_time and master_apply_time.

      API name: publication_time_millis

    • contextConstructionTime

      public final ClusterStateUpdate.Builder contextConstructionTime(@Nullable Time value)
      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

      public final ClusterStateUpdate.Builder contextConstructionTimeMillis(@Nullable Long value)
      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

      public final ClusterStateUpdate.Builder commitTime(@Nullable 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.

      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

      public final ClusterStateUpdate.Builder commitTimeMillis(@Nullable 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.

      API name: commit_time_millis

    • completionTime

      public final ClusterStateUpdate.Builder completionTime(@Nullable 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.

      API name: completion_time

    • 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

    • completionTimeMillis

      public final ClusterStateUpdate.Builder completionTimeMillis(@Nullable 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.

      API name: completion_time_millis

    • masterApplyTime

      public final ClusterStateUpdate.Builder masterApplyTime(@Nullable Time value)
      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

      public final ClusterStateUpdate.Builder masterApplyTimeMillis(@Nullable Long value)
      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

      public final ClusterStateUpdate.Builder notificationTime(@Nullable Time value)
      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

      public final ClusterStateUpdate.Builder notificationTimeMillis(@Nullable Long value)
      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

      protected ClusterStateUpdate.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<ClusterStateUpdate.Builder>
    • build

      public ClusterStateUpdate build()
      Specified by:
      build in interface ObjectBuilder<ClusterStateUpdate>
      Throws:
      NullPointerException - if some of the required fields are null.