Class OperatingSystemMemoryInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<OperatingSystemMemoryInfo.Builder>
co.elastic.clients.elasticsearch.cluster.stats.OperatingSystemMemoryInfo.Builder
- All Implemented Interfaces:
WithJson<OperatingSystemMemoryInfo.Builder>,ObjectBuilder<OperatingSystemMemoryInfo>
- Enclosing class:
- OperatingSystemMemoryInfo
public static class OperatingSystemMemoryInfo.Builder
extends WithJsonObjectBuilderBase<OperatingSystemMemoryInfo.Builder>
implements ObjectBuilder<OperatingSystemMemoryInfo>
Builder for
OperatingSystemMemoryInfo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustedTotalInBytes(Long value) Total amount, in bytes, of memory across all selected nodes, but using the value specified using thees.total_memory_bytessystem property instead of measured total memory for those nodes where that system property was set.build()Builds aOperatingSystemMemoryInfo.freeInBytes(long value) Required - Amount, in bytes, of free physical memory across all selected nodes.freePercent(int value) Required - Percentage of free physical memory across all selected nodes.protected OperatingSystemMemoryInfo.Builderself()totalInBytes(long value) Required - Total amount, in bytes, of physical memory across all selected nodes.usedInBytes(long value) Required - Amount, in bytes, of physical memory in use across all selected nodes.usedPercent(int value) Required - Percentage of physical memory in use across all selected nodes.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
-
adjustedTotalInBytes
Total amount, in bytes, of memory across all selected nodes, but using the value specified using thees.total_memory_bytessystem property instead of measured total memory for those nodes where that system property was set.API name:
adjusted_total_in_bytes -
freeInBytes
Required - Amount, in bytes, of free physical memory across all selected nodes.API name:
free_in_bytes -
freePercent
Required - Percentage of free physical memory across all selected nodes.API name:
free_percent -
totalInBytes
Required - Total amount, in bytes, of physical memory across all selected nodes.API name:
total_in_bytes -
usedInBytes
Required - Amount, in bytes, of physical memory in use across all selected nodes.API name:
used_in_bytes -
usedPercent
Required - Percentage of physical memory in use across all selected nodes.API name:
used_percent -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<OperatingSystemMemoryInfo.Builder>
-
build
Builds aOperatingSystemMemoryInfo.- Specified by:
buildin interfaceObjectBuilder<OperatingSystemMemoryInfo>- Throws:
NullPointerException- if some of the required fields are null.
-