Class Discovery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Discovery.Builder>
co.elastic.clients.elasticsearch.nodes.Discovery.Builder
- All Implemented Interfaces:
WithJson<Discovery.Builder>,ObjectBuilder<Discovery>
- Enclosing class:
- Discovery
public static class Discovery.Builder
extends WithJsonObjectBuilderBase<Discovery.Builder>
implements ObjectBuilder<Discovery>
Builder for
Discovery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDiscovery.final Discovery.BuilderAPI name:cluster_applier_statsfinal Discovery.BuilderAPI name:cluster_applier_statsfinal Discovery.BuilderContains statistics for the cluster state queue of the node.final Discovery.BuilderContains statistics for the cluster state queue of the node.final Discovery.BuilderclusterStateUpdate(String key, ClusterStateUpdate value) Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master.final Discovery.BuilderclusterStateUpdate(String key, Function<ClusterStateUpdate.Builder, ObjectBuilder<ClusterStateUpdate>> fn) Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master.final Discovery.BuilderContains low-level statistics about how long various activities took during cluster state updates while the node was the elected master.final Discovery.BuilderContains statistics for the published cluster states of the node.final Discovery.BuilderpublishedClusterStates(Function<PublishedClusterStates.Builder, ObjectBuilder<PublishedClusterStates>> fn) Contains statistics for the published cluster states of the node.protected Discovery.Builderself()final Discovery.BuilderAPI name:serialized_cluster_statesfinal Discovery.BuilderserializedClusterStates(Function<SerializedClusterState.Builder, ObjectBuilder<SerializedClusterState>> fn) API name:serialized_cluster_statesMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterStateQueue
Contains statistics for the cluster state queue of the node.API name:
cluster_state_queue -
clusterStateQueue
public final Discovery.Builder clusterStateQueue(Function<ClusterStateQueue.Builder, ObjectBuilder<ClusterStateQueue>> fn) Contains statistics for the cluster state queue of the node.API name:
cluster_state_queue -
publishedClusterStates
Contains statistics for the published cluster states of the node.API name:
published_cluster_states -
publishedClusterStates
public final Discovery.Builder publishedClusterStates(Function<PublishedClusterStates.Builder, ObjectBuilder<PublishedClusterStates>> fn) Contains statistics for the published cluster states of the node.API name:
published_cluster_states -
clusterStateUpdate
Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master. Omitted if the node is not master-eligible. Every field whose name ends in_timewithin this object is also represented as a raw number of milliseconds in a field whose name ends in_time_millis. The human-readable fields with a_timesuffix are only returned if requested with the?human=truequery parameter.API name:
cluster_state_updateAdds all entries of
maptoclusterStateUpdate. -
clusterStateUpdate
Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master. Omitted if the node is not master-eligible. Every field whose name ends in_timewithin this object is also represented as a raw number of milliseconds in a field whose name ends in_time_millis. The human-readable fields with a_timesuffix are only returned if requested with the?human=truequery parameter.API name:
cluster_state_updateAdds an entry to
clusterStateUpdate. -
clusterStateUpdate
public final Discovery.Builder clusterStateUpdate(String key, Function<ClusterStateUpdate.Builder, ObjectBuilder<ClusterStateUpdate>> fn) Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master. Omitted if the node is not master-eligible. Every field whose name ends in_timewithin this object is also represented as a raw number of milliseconds in a field whose name ends in_time_millis. The human-readable fields with a_timesuffix are only returned if requested with the?human=truequery parameter.API name:
cluster_state_updateAdds an entry to
clusterStateUpdateusing a builder lambda. -
serializedClusterStates
API name:serialized_cluster_states -
serializedClusterStates
public final Discovery.Builder serializedClusterStates(Function<SerializedClusterState.Builder, ObjectBuilder<SerializedClusterState>> fn) API name:serialized_cluster_states -
clusterApplierStats
API name:cluster_applier_stats -
clusterApplierStats
public final Discovery.Builder clusterApplierStats(Function<ClusterAppliedStats.Builder, ObjectBuilder<ClusterAppliedStats>> fn) API name:cluster_applier_stats -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Discovery.Builder>
-
build
Builds aDiscovery.- Specified by:
buildin interfaceObjectBuilder<Discovery>- Throws:
NullPointerException- if some of the required fields are null.
-