Class Allocations.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Allocations.Builder>
co.elastic.clients.elasticsearch.nodes.Allocations.Builder
- All Implemented Interfaces:
WithJson<Allocations.Builder>,ObjectBuilder<Allocations>
- Enclosing class:
- Allocations
public static class Allocations.Builder
extends WithJsonObjectBuilderBase<Allocations.Builder>
implements ObjectBuilder<Allocations>
Builder for
Allocations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAllocations.final Allocations.BuildercurrentDiskUsage(String value) Current disk usage for the node.final Allocations.BuildercurrentDiskUsageInBytes(Long value) Current disk usage, in bytes, for the node.final Allocations.BuilderforecastedDiskUsage(String value) Forecasted disk usage for the node.final Allocations.BuilderforecastedDiskUsageInBytes(Long value) Forecasted disk usage, in bytes, for the node.final Allocations.BuilderforecastedIngestLoad(Double value) Forecasted ingest load for the node.protected Allocations.Builderself()final Allocations.BuilderNumber of shards allocated to the node.final Allocations.BuilderundesiredShards(Integer value) Number of shards allocated to the node that are currently undesired.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
-
Builder
public Builder()
-
-
Method Details
-
shards
Number of shards allocated to the node.API name:
shards -
undesiredShards
Number of shards allocated to the node that are currently undesired.API name:
undesired_shards -
forecastedIngestLoad
Forecasted ingest load for the node.API name:
forecasted_ingest_load -
forecastedDiskUsage
Forecasted disk usage for the node.API name:
forecasted_disk_usage -
forecastedDiskUsageInBytes
Forecasted disk usage, in bytes, for the node.API name:
forecasted_disk_usage_in_bytes -
currentDiskUsage
Current disk usage for the node.API name:
current_disk_usage -
currentDiskUsageInBytes
Current disk usage, in bytes, for the node.API name:
current_disk_usage_in_bytes -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Allocations.Builder>
-
build
Builds aAllocations.- Specified by:
buildin interfaceObjectBuilder<Allocations>- Throws:
NullPointerException- if some of the required fields are null.
-