CassandraClusterPublicStatusDataCentersItemNode Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. CassandraClusterPublicStatusDataCentersItemNode
- com.
Implements
public final class CassandraClusterPublicStatusDataCentersItemNode
implements JsonSerializable<CassandraClusterPublicStatusDataCentersItemNode>
The CassandraClusterPublicStatusDataCentersItemNode model.
Constructor Summary
Constructor | Description |
---|---|
CassandraClusterPublicStatusDataCentersItemNode() |
Creates an instance of Cassandra |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
address()
Get the address property: The node's IP address. |
String |
cassandraProcessStatus()
Get the cassandra |
Double |
cpuUsage()
Get the cpu |
Long |
diskFreeKB()
Get the disk |
Long |
diskUsedKB()
Get the disk |
static
Cassandra |
fromJson(JsonReader jsonReader)
Reads an instance of Cassandra |
String |
hostId()
Get the host |
String |
load()
Get the load property: The amount of file system data in the data directory (e. |
Long |
memoryBuffersAndCachedKB()
Get the memory |
Long |
memoryFreeKB()
Get the memory |
Long |
memoryTotalKB()
Get the memory |
Long |
memoryUsedKB()
Get the memory |
String |
rack()
Get the rack property: The rack this node is part of. |
Integer |
size()
Get the size property: The size property. |
Node |
state()
Get the state property: The state of the node in Cassandra ring. |
String |
status()
Get the status property: The status property. |
String |
timestamp()
Get the timestamp property: The timestamp when these statistics were captured. |
Json |
toJson(JsonWriter jsonWriter) |
List<String> |
tokens()
Get the tokens property: List of tokens this node covers. |
void |
validate()
Validates the instance. |
Cassandra |
withAddress(String address)
Set the address property: The node's IP address. |
Cassandra |
withCassandraProcessStatus(String cassandraProcessStatus)
Set the cassandra |
Cassandra |
withCpuUsage(Double cpuUsage)
Set the cpu |
Cassandra |
withDiskFreeKB(Long diskFreeKB)
Set the disk |
Cassandra |
withDiskUsedKB(Long diskUsedKB)
Set the disk |
Cassandra |
withHostId(String hostId)
Set the host |
Cassandra |
withLoad(String load)
Set the load property: The amount of file system data in the data directory (e. |
Cassandra |
withMemoryBuffersAndCachedKB(Long memoryBuffersAndCachedKB)
Set the memory |
Cassandra |
withMemoryFreeKB(Long memoryFreeKB)
Set the memory |
Cassandra |
withMemoryTotalKB(Long memoryTotalKB)
Set the memory |
Cassandra |
withMemoryUsedKB(Long memoryUsedKB)
Set the memory |
Cassandra |
withRack(String rack)
Set the rack property: The rack this node is part of. |
Cassandra |
withSize(Integer size)
Set the size property: The size property. |
Cassandra |
withState(NodeState state)
Set the state property: The state of the node in Cassandra ring. |
Cassandra |
withStatus(String status)
Set the status property: The status property. |
Cassandra |
withTimestamp(String timestamp)
Set the timestamp property: The timestamp when these statistics were captured. |
Cassandra |
withTokens(List<String> tokens)
Set the tokens property: List of tokens this node covers. |
Methods inherited from java.lang.Object
Constructor Details
CassandraClusterPublicStatusDataCentersItemNode
public CassandraClusterPublicStatusDataCentersItemNode()
Creates an instance of CassandraClusterPublicStatusDataCentersItemNode class.
Method Details
address
public String address()
Get the address property: The node's IP address.
Returns:
cassandraProcessStatus
public String cassandraProcessStatus()
Get the cassandraProcessStatus property: Cassandra service status on this node.
Returns:
cpuUsage
public Double cpuUsage()
Get the cpuUsage property: A float representing the current system-wide CPU utilization as a percentage.
Returns:
diskFreeKB
public Long diskFreeKB()
Get the diskFreeKB property: The amount of disk free, in kB, of the directory /var/lib/cassandra.
Returns:
diskUsedKB
public Long diskUsedKB()
Get the diskUsedKB property: The amount of disk used, in kB, of the directory /var/lib/cassandra.
Returns:
fromJson
public static CassandraClusterPublicStatusDataCentersItemNode fromJson(JsonReader jsonReader)
Reads an instance of CassandraClusterPublicStatusDataCentersItemNode from the JsonReader.
Parameters:
Returns:
Throws:
hostId
public String hostId()
Get the hostId property: The network ID of the node.
Returns:
load
public String 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:
memoryBuffersAndCachedKB
public Long 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:
memoryFreeKB
public Long memoryFreeKB()
Get the memoryFreeKB property: Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.
Returns:
memoryTotalKB
public Long memoryTotalKB()
Get the memoryTotalKB property: Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.
Returns:
memoryUsedKB
public Long memoryUsedKB()
Get the memoryUsedKB property: Used memory (calculated as total - free - buffers - cache), in kB.
Returns:
rack
public String rack()
Get the rack property: The rack this node is part of.
Returns:
size
public Integer size()
Get the size property: The size property.
Returns:
state
public NodeState state()
Get the state property: The state of the node in Cassandra ring.
Returns:
status
public String status()
Get the status property: The status property.
Returns:
timestamp
public String timestamp()
Get the timestamp property: The timestamp when these statistics were captured.
Returns:
toJson
tokens
public List
Get the tokens property: List of tokens this node covers.
Returns:
validate
public void validate()
Validates the instance.
withAddress
public CassandraClusterPublicStatusDataCentersItemNode withAddress(String address)
Set the address property: The node's IP address.
Parameters:
Returns:
withCassandraProcessStatus
public CassandraClusterPublicStatusDataCentersItemNode withCassandraProcessStatus(String cassandraProcessStatus)
Set the cassandraProcessStatus property: Cassandra service status on this node.
Parameters:
Returns:
withCpuUsage
public CassandraClusterPublicStatusDataCentersItemNode withCpuUsage(Double cpuUsage)
Set the cpuUsage property: A float representing the current system-wide CPU utilization as a percentage.
Parameters:
Returns:
withDiskFreeKB
public CassandraClusterPublicStatusDataCentersItemNode withDiskFreeKB(Long diskFreeKB)
Set the diskFreeKB property: The amount of disk free, in kB, of the directory /var/lib/cassandra.
Parameters:
Returns:
withDiskUsedKB
public CassandraClusterPublicStatusDataCentersItemNode withDiskUsedKB(Long diskUsedKB)
Set the diskUsedKB property: The amount of disk used, in kB, of the directory /var/lib/cassandra.
Parameters:
Returns:
withHostId
public CassandraClusterPublicStatusDataCentersItemNode withHostId(String hostId)
Set the hostId property: The network ID of the node.
Parameters:
Returns:
withLoad
public CassandraClusterPublicStatusDataCentersItemNode withLoad(String load)
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:
Returns:
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:
Returns:
withMemoryFreeKB
public CassandraClusterPublicStatusDataCentersItemNode withMemoryFreeKB(Long memoryFreeKB)
Set the memoryFreeKB property: Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.
Parameters:
Returns:
withMemoryTotalKB
public CassandraClusterPublicStatusDataCentersItemNode withMemoryTotalKB(Long memoryTotalKB)
Set the memoryTotalKB property: Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.
Parameters:
Returns:
withMemoryUsedKB
public CassandraClusterPublicStatusDataCentersItemNode withMemoryUsedKB(Long memoryUsedKB)
Set the memoryUsedKB property: Used memory (calculated as total - free - buffers - cache), in kB.
Parameters:
Returns:
withRack
public CassandraClusterPublicStatusDataCentersItemNode withRack(String rack)
Set the rack property: The rack this node is part of.
Parameters:
Returns:
withSize
public CassandraClusterPublicStatusDataCentersItemNode withSize(Integer size)
Set the size property: The size property.
Parameters:
Returns:
withState
public CassandraClusterPublicStatusDataCentersItemNode withState(NodeState state)
Set the state property: The state of the node in Cassandra ring.
Parameters:
Returns:
withStatus
public CassandraClusterPublicStatusDataCentersItemNode withStatus(String status)
Set the status property: The status property.
Parameters:
Returns:
withTimestamp
public CassandraClusterPublicStatusDataCentersItemNode withTimestamp(String timestamp)
Set the timestamp property: The timestamp when these statistics were captured.
Parameters:
Returns:
withTokens
public CassandraClusterPublicStatusDataCentersItemNode withTokens(List
Set the tokens property: List of tokens this node covers.
Parameters:
Returns:
Applies to
Azure SDK for Java