Class CassandraClusterPublicStatusDataCentersItemNode
java.lang.Object
com.azure.resourcemanager.cosmos.models.CassandraClusterPublicStatusDataCentersItemNode
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CassandraClusterPublicStatusDataCentersItemNode>
public final class CassandraClusterPublicStatusDataCentersItemNode
extends Object
implements com.azure.json.JsonSerializable<CassandraClusterPublicStatusDataCentersItemNode>
The CassandraClusterPublicStatusDataCentersItemNode model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CassandraClusterPublicStatusDataCentersItemNode class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Get the address property: The node's IP address.Get the cassandraProcessStatus property: Cassandra service status on this node.cpuUsage()
Get the cpuUsage property: A float representing the current system-wide CPU utilization as a percentage.Get the diskFreeKB property: The amount of disk free, in kB, of the directory /var/lib/cassandra.Get the diskUsedKB property: The amount of disk used, in kB, of the directory /var/lib/cassandra.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CassandraClusterPublicStatusDataCentersItemNode from the JsonReader.hostId()
Get the hostId property: The network ID of the node.load()
Get the load property: The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories.Get the memoryBuffersAndCachedKB property: Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.Get the memoryFreeKB property: Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.Get the memoryTotalKB property: Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.Get the memoryUsedKB property: Used memory (calculated as total - free - buffers - cache), in kB.rack()
Get the rack property: The rack this node is part of.size()
Get the size property: The size property.state()
Get the state property: The state of the node in Cassandra ring.status()
Get the status property: The status property.Get the timestamp property: The timestamp when these statistics were captured.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) tokens()
Get the tokens property: List of tokens this node covers.void
validate()
Validates the instance.withAddress
(String address) Set the address property: The node's IP address.withCassandraProcessStatus
(String cassandraProcessStatus) Set the cassandraProcessStatus property: Cassandra service status on this node.withCpuUsage
(Double cpuUsage) Set the cpuUsage property: A float representing the current system-wide CPU utilization as a percentage.withDiskFreeKB
(Long diskFreeKB) Set the diskFreeKB property: The amount of disk free, in kB, of the directory /var/lib/cassandra.withDiskUsedKB
(Long diskUsedKB) Set the diskUsedKB property: The amount of disk used, in kB, of the directory /var/lib/cassandra.withHostId
(String hostId) Set the hostId property: The network ID of the node.Set the load property: The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories.withMemoryBuffersAndCachedKB
(Long memoryBuffersAndCachedKB) Set the memoryBuffersAndCachedKB property: Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.withMemoryFreeKB
(Long memoryFreeKB) Set the memoryFreeKB property: Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.withMemoryTotalKB
(Long memoryTotalKB) Set the memoryTotalKB property: Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.withMemoryUsedKB
(Long memoryUsedKB) Set the memoryUsedKB property: Used memory (calculated as total - free - buffers - cache), in kB.Set the rack property: The rack this node is part of.Set the size property: The size property.Set the state property: The state of the node in Cassandra ring.withStatus
(String status) Set the status property: The status property.withTimestamp
(String timestamp) Set the timestamp property: The timestamp when these statistics were captured.withTokens
(List<String> tokens) Set the tokens property: List of tokens this node covers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CassandraClusterPublicStatusDataCentersItemNode
public CassandraClusterPublicStatusDataCentersItemNode()Creates an instance of CassandraClusterPublicStatusDataCentersItemNode class.
-
-
Method Details
-
address
Get the address property: The node's IP address.- Returns:
- the address value.
-
withAddress
Set the address property: The node's IP address.- Parameters:
address
- the address value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
state
Get the state property: The state of the node in Cassandra ring.- Returns:
- the state value.
-
withState
Set the state property: The state of the node in Cassandra ring.- Parameters:
state
- the state value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
status
Get the status property: The status property.- Returns:
- the status value.
-
withStatus
Set the status property: The status property.- Parameters:
status
- the status value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
cassandraProcessStatus
Get the cassandraProcessStatus property: Cassandra service status on this node.- Returns:
- the cassandraProcessStatus value.
-
withCassandraProcessStatus
public CassandraClusterPublicStatusDataCentersItemNode withCassandraProcessStatus(String cassandraProcessStatus) Set the cassandraProcessStatus property: Cassandra service status on this node.- Parameters:
cassandraProcessStatus
- the cassandraProcessStatus value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
load
Get the load property: The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cells or tombstones) is counted.- Returns:
- the load value.
-
withLoad
Set the load property: The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cells or tombstones) is counted.- Parameters:
load
- the load value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
tokens
Get the tokens property: List of tokens this node covers.- Returns:
- the tokens value.
-
withTokens
Set the tokens property: List of tokens this node covers.- Parameters:
tokens
- the tokens value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
size
Get the size property: The size property.- Returns:
- the size value.
-
withSize
Set the size property: The size property.- Parameters:
size
- the size value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
hostId
Get the hostId property: The network ID of the node.- Returns:
- the hostId value.
-
withHostId
Set the hostId property: The network ID of the node.- Parameters:
hostId
- the hostId value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
rack
Get the rack property: The rack this node is part of.- Returns:
- the rack value.
-
withRack
Set the rack property: The rack this node is part of.- Parameters:
rack
- the rack value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
timestamp
Get the timestamp property: The timestamp when these statistics were captured.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: The timestamp when these statistics were captured.- Parameters:
timestamp
- the timestamp value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
diskUsedKB
Get the diskUsedKB property: The amount of disk used, in kB, of the directory /var/lib/cassandra.- Returns:
- the diskUsedKB value.
-
withDiskUsedKB
Set the diskUsedKB property: The amount of disk used, in kB, of the directory /var/lib/cassandra.- Parameters:
diskUsedKB
- the diskUsedKB value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
diskFreeKB
Get the diskFreeKB property: The amount of disk free, in kB, of the directory /var/lib/cassandra.- Returns:
- the diskFreeKB value.
-
withDiskFreeKB
Set the diskFreeKB property: The amount of disk free, in kB, of the directory /var/lib/cassandra.- Parameters:
diskFreeKB
- the diskFreeKB value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
memoryUsedKB
Get the memoryUsedKB property: Used memory (calculated as total - free - buffers - cache), in kB.- Returns:
- the memoryUsedKB value.
-
withMemoryUsedKB
Set the memoryUsedKB property: Used memory (calculated as total - free - buffers - cache), in kB.- Parameters:
memoryUsedKB
- the memoryUsedKB value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
memoryBuffersAndCachedKB
Get the memoryBuffersAndCachedKB property: Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.- Returns:
- the memoryBuffersAndCachedKB value.
-
withMemoryBuffersAndCachedKB
public CassandraClusterPublicStatusDataCentersItemNode withMemoryBuffersAndCachedKB(Long memoryBuffersAndCachedKB) Set the memoryBuffersAndCachedKB property: Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.- Parameters:
memoryBuffersAndCachedKB
- the memoryBuffersAndCachedKB value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
memoryFreeKB
Get the memoryFreeKB property: Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.- Returns:
- the memoryFreeKB value.
-
withMemoryFreeKB
Set the memoryFreeKB property: Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.- Parameters:
memoryFreeKB
- the memoryFreeKB value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
memoryTotalKB
Get the memoryTotalKB property: Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.- Returns:
- the memoryTotalKB value.
-
withMemoryTotalKB
Set the memoryTotalKB property: Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.- Parameters:
memoryTotalKB
- the memoryTotalKB value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
cpuUsage
Get the cpuUsage property: A float representing the current system-wide CPU utilization as a percentage.- Returns:
- the cpuUsage value.
-
withCpuUsage
Set the cpuUsage property: A float representing the current system-wide CPU utilization as a percentage.- Parameters:
cpuUsage
- the cpuUsage value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItemNode object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CassandraClusterPublicStatusDataCentersItemNode>
- Throws:
IOException
-
fromJson
public static CassandraClusterPublicStatusDataCentersItemNode fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CassandraClusterPublicStatusDataCentersItemNode from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CassandraClusterPublicStatusDataCentersItemNode if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the CassandraClusterPublicStatusDataCentersItemNode.
-