Class AutoFollowStats.Builder

All Implemented Interfaces:
WithJson<AutoFollowStats.Builder>, ObjectBuilder<AutoFollowStats>
Enclosing class:
AutoFollowStats

public static class AutoFollowStats.Builder extends WithJsonObjectBuilderBase<AutoFollowStats.Builder> implements ObjectBuilder<AutoFollowStats>
Builder for AutoFollowStats.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • autoFollowedClusters

      public final AutoFollowStats.Builder autoFollowedClusters(List<AutoFollowedCluster> list)
      Required - API name: auto_followed_clusters

      Adds all elements of list to autoFollowedClusters.

    • autoFollowedClusters

      public final AutoFollowStats.Builder autoFollowedClusters(AutoFollowedCluster value, AutoFollowedCluster... values)
      Required - API name: auto_followed_clusters

      Adds one or more values to autoFollowedClusters.

    • autoFollowedClusters

      Required - API name: auto_followed_clusters

      Adds a value to autoFollowedClusters using a builder lambda.

    • numberOfFailedFollowIndices

      public final AutoFollowStats.Builder numberOfFailedFollowIndices(long value)
      Required - The number of indices that the auto-follow coordinator failed to automatically follow. The causes of recent failures are captured in the logs of the elected master node and in the auto_follow_stats.recent_auto_follow_errors field.

      API name: number_of_failed_follow_indices

    • numberOfFailedRemoteClusterStateRequests

      public final AutoFollowStats.Builder numberOfFailedRemoteClusterStateRequests(long value)
      Required - The number of times that the auto-follow coordinator failed to retrieve the cluster state from a remote cluster registered in a collection of auto-follow patterns.

      API name: number_of_failed_remote_cluster_state_requests

    • numberOfSuccessfulFollowIndices

      public final AutoFollowStats.Builder numberOfSuccessfulFollowIndices(long value)
      Required - The number of indices that the auto-follow coordinator successfully followed.

      API name: number_of_successful_follow_indices

    • recentAutoFollowErrors

      public final AutoFollowStats.Builder recentAutoFollowErrors(List<ErrorCause> list)
      Required - An array of objects representing failures by the auto-follow coordinator.

      API name: recent_auto_follow_errors

      Adds all elements of list to recentAutoFollowErrors.

    • recentAutoFollowErrors

      public final AutoFollowStats.Builder recentAutoFollowErrors(ErrorCause value, ErrorCause... values)
      Required - An array of objects representing failures by the auto-follow coordinator.

      API name: recent_auto_follow_errors

      Adds one or more values to recentAutoFollowErrors.

    • recentAutoFollowErrors

      public final AutoFollowStats.Builder recentAutoFollowErrors(Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
      Required - An array of objects representing failures by the auto-follow coordinator.

      API name: recent_auto_follow_errors

      Adds a value to recentAutoFollowErrors using a builder lambda.

    • self

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

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