Class NodeInfoOSCPU
java.lang.Object
org.opensearch.client.opensearch.nodes.info.NodeInfoOSCPU
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<NodeInfoOSCPU.Builder,NodeInfoOSCPU>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class NodeInfoOSCPU
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<NodeInfoOSCPU.Builder,NodeInfoOSCPU>
Provides CPU information for the node.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<NodeInfoOSCPU> Json deserializer forNodeInfoOSCPU -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeInfoOSCPU.Builderbuilder()final StringRequired - API name:cache_sizefinal longRequired - API name:cache_size_in_bytesfinal intRequired - The number of cores per CPU socket.booleaninthashCode()final intmhz()Required - The CPU clock speed in MHz.final Stringmodel()Required - The CPU model name.static NodeInfoOSCPUvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final intRequired - The total number of CPU cores.final intRequired - The total number of CPU sockets.final Stringvendor()Required - The CPU vendor name.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 forNodeInfoOSCPU
-
-
Method Details
-
of
-
cacheSize
Required - API name:cache_size -
cacheSizeInBytes
public final long cacheSizeInBytes()Required - API name:cache_size_in_bytes -
coresPerSocket
public final int coresPerSocket()Required - The number of cores per CPU socket.API name:
cores_per_socket -
mhz
public final int mhz()Required - The CPU clock speed in MHz.API name:
mhz -
model
Required - The CPU model name.API name:
model -
totalCores
public final int totalCores()Required - The total number of CPU cores.API name:
total_cores -
totalSockets
public final int totalSockets()Required - The total number of CPU sockets.API name:
total_sockets -
vendor
Required - The CPU vendor name.API name:
vendor -
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<NodeInfoOSCPU.Builder,NodeInfoOSCPU> - Returns:
- a new builder instance.
-
builder
-
setupNodeInfoOSCPUDeserializer
-
hashCode
public int hashCode() -
equals
-