Class HealthResponseBody.AbstractBuilder<BuilderT extends HealthResponseBody.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.cluster.health.HealthResponseBody.AbstractBuilder<BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
HealthResponse.Builder
- Enclosing class:
- HealthResponseBody
public abstract static class HealthResponseBody.AbstractBuilder<BuilderT extends HealthResponseBody.AbstractBuilder<BuilderT>>
extends WithJsonObjectBuilderBase<BuilderT>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderTactivePrimaryShards(int value) Required - The number of active primary shards.final BuilderTactiveShards(int value) Required - The total number of active primary and replica shards.final BuilderTactiveShardsPercent(String value) The ratio of active shards in the cluster expressed as a string formatted percentage.final BuilderTactiveShardsPercentAsNumber(double value) Required - The ratio of active shards in the cluster expressed as a percentage.final BuilderTclusterName(String value) Required - The name of the cluster.final BuilderTdelayedUnassignedShards(int value) Required - The number of shards whose allocation has been delayed by the timeout settings.final BuilderTindices(String key, IndexHealthStats value) API name:indicesfinal BuilderTAPI name:indicesfinal BuilderTindices(Map<String, IndexHealthStats> map) API name:indicesfinal BuilderTinitializingShards(int value) Required - The number of shards that are under initialization.final BuilderTnumberOfDataNodes(int value) Required - The number of nodes that are dedicated data nodes.final BuilderTnumberOfInFlightFetch(int value) Required - The number of unfinished fetches.final BuilderTnumberOfNodes(int value) Required - The number of nodes within the cluster.final BuilderTnumberOfPendingTasks(int value) Required - The number of cluster-level changes that have not yet been executed.final BuilderTrelocatingShards(int value) Required - The number of shards that are under relocation.protected abstract BuilderTself()final BuilderTstatus(HealthStatus value) Required - API name:statusfinal BuilderTtaskMaxWaitingInQueue(Time value) The time since the earliest initiated task is waiting for being performed.final BuilderTThe time since the earliest initiated task is waiting for being performed.final BuilderTtaskMaxWaitingInQueueMillis(long value) Required - The time expressed in milliseconds since the earliest initiated task is waiting for being performed.final BuilderTtimedOut(boolean value) Required - If false the response returned within the period of time that is specified by the timeout parameter (30s by default)final BuilderTunassignedPrimaryShards(int value) Required - The number of primary shards that are not allocated.final BuilderTunassignedShards(int value) Required - The number of shards that are not allocated.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
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
The ratio of active shards in the cluster expressed as a string formatted percentage.API name:
active_shards_percent -
activeShardsPercentAsNumber
Required - The ratio of active shards in the cluster expressed as a percentage.API name:
active_shards_percent_as_number -
clusterName
Required - The name of the cluster.API name:
cluster_name -
delayedUnassignedShards
Required - The number of shards whose allocation has been delayed by the timeout settings.API name:
delayed_unassigned_shards -
indices
API name:indicesAdds all entries of
maptoindices. -
indices
API name:indicesAdds an entry to
indices. -
indices
public final BuilderT indices(String key, Function<IndexHealthStats.Builder, ObjectBuilder<IndexHealthStats>> fn) API name:indicesAdds an entry 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
The time since the earliest initiated task is waiting for being performed.API name:
task_max_waiting_in_queue -
taskMaxWaitingInQueue
The time since the earliest initiated task is waiting for being performed.API name:
task_max_waiting_in_queue -
taskMaxWaitingInQueueMillis
Required - The time expressed in milliseconds since the earliest initiated task is waiting for being performed.API name:
task_max_waiting_in_queue_millis -
timedOut
Required - If false the response returned within the period of time that is specified by the timeout parameter (30s by default)API name:
timed_out -
unassignedPrimaryShards
Required - The number of primary shards that are not allocated.API name:
unassigned_primary_shards -
unassignedShards
Required - The number of shards that are not allocated.API name:
unassigned_shards -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<BuilderT extends HealthResponseBody.AbstractBuilder<BuilderT>>
-