Class OperatingSystemMemoryInfo
java.lang.Object
org.opensearch.client.opensearch.cluster.stats.OperatingSystemMemoryInfo
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<OperatingSystemMemoryInfo.Builder,OperatingSystemMemoryInfo>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OperatingSystemMemoryInfo
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<OperatingSystemMemoryInfo.Builder,OperatingSystemMemoryInfo>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<OperatingSystemMemoryInfo> Json deserializer forOperatingSystemMemoryInfo -
Method Summary
Modifier and TypeMethodDescriptionfinal LongTotal 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.builder()booleanfinal Stringfree()Amount, in bytes, of free physical memory across all selected nodes.final longRequired - Amount, in bytes, of free physical memory across all selected nodes.final doubleRequired - Percentage of free physical memory across all selected nodes.inthashCode()static OperatingSystemMemoryInfovoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupOperatingSystemMemoryInfoDeserializer(ObjectDeserializer<OperatingSystemMemoryInfo.Builder> op) Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringtotal()Total amount of physical memory across all selected nodes.final longRequired - Total amount, in bytes, of physical memory across all selected nodes.final Stringused()Amount of physical memory in use across all selected nodes.final longRequired - Amount, in bytes, of physical memory in use across all selected nodes.final doubleRequired - Percentage of physical memory in use across all selected nodes.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
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_bytessystem property instead of measured total memory for those nodes where that system property was set.API name:
adjusted_total_in_bytes -
free
Amount, in bytes, of free physical memory across all selected nodes.API name:
free -
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 double freePercent()Required - Percentage of free physical memory across all selected nodes.API name:
free_percent -
total
Total amount of physical memory across all selected nodes.API name:
total -
totalInBytes
public final long totalInBytes()Required - Total amount, in bytes, of physical memory across all selected nodes.API name:
total_in_bytes -
used
Amount of physical memory in use across all selected nodes.API name:
used -
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 double usedPercent()Required - Percentage of physical memory in use across all selected nodes.API name:
used_percent -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<OperatingSystemMemoryInfo.Builder,OperatingSystemMemoryInfo> - Returns:
- a new builder instance.
-
builder
-
setupOperatingSystemMemoryInfoDeserializer
protected static void setupOperatingSystemMemoryInfoDeserializer(ObjectDeserializer<OperatingSystemMemoryInfo.Builder> op) -
hashCode
public int hashCode() -
equals
-