Class OperatingSystemMemoryInfo
java.lang.Object
co.elastic.clients.elasticsearch.cluster.stats.OperatingSystemMemoryInfo
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class OperatingSystemMemoryInfo
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<OperatingSystemMemoryInfo>
Json deserializer forOperatingSystemMemoryInfo
-
Method Summary
Modifier and TypeMethodDescriptionfinal Long
Total amount, in bytes, of memory across all selected nodes, but using the value specified using thees.total_memory_bytes
system property instead of measured total memory for those nodes where that system property was set.final long
Required - Amount, in bytes, of free physical memory across all selected nodes.final int
Required - Percentage of free physical memory across all selected nodes.static OperatingSystemMemoryInfo
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupOperatingSystemMemoryInfoDeserializer
(ObjectDeserializer<OperatingSystemMemoryInfo.Builder> op) toString()
final long
Required - Total amount, in bytes, of physical memory across all selected nodes.final long
Required - Amount, in bytes, of physical memory in use across all selected nodes.final int
Required - Percentage of physical memory in use across all selected nodes.
-
Field Details
-
_DESERIALIZER
Json deserializer forOperatingSystemMemoryInfo
-
-
Method Details
-
of
public static OperatingSystemMemoryInfo of(Function<OperatingSystemMemoryInfo.Builder, ObjectBuilder<OperatingSystemMemoryInfo>> fn) -
adjustedTotalInBytes
Total amount, in bytes, of memory across all selected nodes, but using the value specified using thees.total_memory_bytes
system property instead of measured total memory for those nodes where that system property was set.API name:
adjusted_total_in_bytes
-
freeInBytes
public final long freeInBytes()Required - Amount, in bytes, of free physical memory across all selected nodes.API name:
free_in_bytes
-
freePercent
public final int freePercent()Required - Percentage of free physical memory across all selected nodes.API name:
free_percent
-
totalInBytes
public final long totalInBytes()Required - Total amount, in bytes, of physical memory across all selected nodes.API name:
total_in_bytes
-
usedInBytes
public final long usedInBytes()Required - Amount, in bytes, of physical memory in use across all selected nodes.API name:
used_in_bytes
-
usedPercent
public final int usedPercent()Required - Percentage of physical memory in use across all selected nodes.API name:
used_percent
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupOperatingSystemMemoryInfoDeserializer
protected static void setupOperatingSystemMemoryInfoDeserializer(ObjectDeserializer<OperatingSystemMemoryInfo.Builder> op)
-