Class HealthResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<HealthResponse.Builder,,HealthResponse> MutableBuilder<HealthResponse.Builder,,HealthResponse> ObjectBuilder<HealthResponse>
- Enclosing class:
HealthResponse
HealthResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal HealthResponse.BuilderactivePrimaryShards(int value) Required - The number of active primary shards.final HealthResponse.BuilderactiveShards(int value) Required - The total number of active primary and replica shards.final HealthResponse.BuilderactiveShardsPercent(String value) API name:active_shards_percentfinal HealthResponse.BuilderactiveShardsPercentAsNumber(double value) Required - API name:active_shards_percent_as_numberfinal HealthResponse.BuilderawarenessAttributes(String key, Function<AwarenessAttributeStats.Builder, ObjectBuilder<AwarenessAttributeStats>> fn) Cluster health information for each awareness attribute.final HealthResponse.BuilderawarenessAttributes(String key, AwarenessAttributeStats value) Cluster health information for each awareness attribute.final HealthResponse.BuilderCluster health information for each awareness attribute.build()Builds aHealthResponse.final HealthResponse.BuilderclusterName(String value) Required - API name:cluster_namecopy()Create a new builderCopyableBuilderthat is a copy of this one.final HealthResponse.BuilderdelayedUnassignedShards(int value) Required - The number of shards whose allocation has been delayed by the timeout settings.final HealthResponse.BuilderdiscoveredClusterManager(Boolean value) True if the cluster-manager node has been discovered.final HealthResponse.BuilderdiscoveredMaster(Boolean value) True if the cluster-manager node has been discovered.final HealthResponse.BuilderAPI name:indicesfinal HealthResponse.Builderindices(String key, IndexHealthStats value) API name:indicesfinal HealthResponse.Builderindices(Map<String, IndexHealthStats> map) API name:indicesfinal HealthResponse.BuilderinitializingShards(int value) Required - The number of shards that are under initialization.final HealthResponse.BuildernumberOfDataNodes(int value) Required - The number of nodes that are dedicated data nodes.final HealthResponse.BuildernumberOfInFlightFetch(int value) Required - The number of unfinished fetches.final HealthResponse.BuildernumberOfNodes(int value) Required - The number of nodes within the cluster.final HealthResponse.BuildernumberOfPendingTasks(int value) Required - The number of cluster-level changes that have not yet been executed.final HealthResponse.BuilderrelocatingShards(int value) Required - The number of shards that are under relocation.final HealthResponse.Builderstatus(HealthStatus value) Required - API name:statusfinal HealthResponse.BuilderAPI name:task_max_waiting_in_queuefinal HealthResponse.BuildertaskMaxWaitingInQueue(Time value) API name:task_max_waiting_in_queuefinal HealthResponse.BuildertaskMaxWaitingInQueueMillis(long value) Required - API name:task_max_waiting_in_queue_millisfinal HealthResponse.BuildertimedOut(boolean value) Required - Iffalsethe response returned within the period of time that is specified by the timeout parameter (30sby default).final HealthResponse.BuilderunassignedShards(int value) Required - The number of shards that are not allocated.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<HealthResponse.Builder,HealthResponse> - Returns:
- a new builder instance.
-
activePrimaryShards
Required - The number of active primary shards.API name:
active_primary_shards -
activeShards
Required - The total number of active primary and replica shards.API name:
active_shards -
activeShardsPercent
API name:active_shards_percent -
activeShardsPercentAsNumber
Required - API name:active_shards_percent_as_number -
awarenessAttributes
@Nonnull public final HealthResponse.Builder awarenessAttributes(Map<String, AwarenessAttributeStats> map) Cluster health information for each awareness attribute.API name:
awareness_attributesAdds all elements of
maptoawarenessAttributes. -
awarenessAttributes
@Nonnull public final HealthResponse.Builder awarenessAttributes(String key, AwarenessAttributeStats value) Cluster health information for each awareness attribute.API name:
awareness_attributesAdds an entry to
awarenessAttributes. -
awarenessAttributes
@Nonnull public final HealthResponse.Builder awarenessAttributes(String key, Function<AwarenessAttributeStats.Builder, ObjectBuilder<AwarenessAttributeStats>> fn) Cluster health information for each awareness attribute.API name:
awareness_attributesAdds a value to
awarenessAttributesusing a builder lambda. -
clusterName
Required - API name:cluster_name -
delayedUnassignedShards
Required - The number of shards whose allocation has been delayed by the timeout settings.API name:
delayed_unassigned_shards -
discoveredClusterManager
True if the cluster-manager node has been discovered.API name:
discovered_cluster_manager -
discoveredMaster
True if the cluster-manager node has been discovered.API name:
discovered_master -
indices
API name:indicesAdds all elements of
maptoindices. -
indices
API name:indicesAdds an entry to
indices. -
indices
@Nonnull public final HealthResponse.Builder indices(String key, Function<IndexHealthStats.Builder, ObjectBuilder<IndexHealthStats>> fn) API name:indicesAdds a value to
indicesusing a builder lambda. -
initializingShards
Required - The number of shards that are under initialization.API name:
initializing_shards -
numberOfDataNodes
Required - The number of nodes that are dedicated data nodes.API name:
number_of_data_nodes -
numberOfInFlightFetch
Required - The number of unfinished fetches.API name:
number_of_in_flight_fetch -
numberOfNodes
Required - The number of nodes within the cluster.API name:
number_of_nodes -
numberOfPendingTasks
Required - The number of cluster-level changes that have not yet been executed.API name:
number_of_pending_tasks -
relocatingShards
Required - The number of shards that are under relocation.API name:
relocating_shards -
status
Required - API name:status -
taskMaxWaitingInQueue
API name:task_max_waiting_in_queue -
taskMaxWaitingInQueue
@Nonnull public final HealthResponse.Builder taskMaxWaitingInQueue(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:task_max_waiting_in_queue -
taskMaxWaitingInQueueMillis
Required - API name:task_max_waiting_in_queue_millis -
timedOut
Required - Iffalsethe response returned within the period of time that is specified by the timeout parameter (30sby default).API name:
timed_out -
unassignedShards
Required - The number of shards that are not allocated.API name:
unassigned_shards -
build
Builds aHealthResponse.- Specified by:
buildin interfaceObjectBuilder<HealthResponse>- Throws:
NullPointerException- if some of the required fields are null.
-