class Host
Represents a Cassandra node.
- Global
- This class is global
Augments
Members
String
address
Gets ip address and port number of the node separated by :
.
String
cassandraVersion
Gets string containing the Cassandra version.
String
datacenter
Gets data center name of the node.
String
dseVersion
Gets string containing the DSE version or null if not set.
Uuid
hostId
Gets the id of the host.
This identifier is used by the server for internal communication / gossip.
String
rack
Gets rack name of the node.
Array
tokens
Gets the tokens assigned to the node.
Gets the DSE Workloads the host is running.
This is based on the “workload” or “workloads” columns in {@code system.local} and {@code system.peers}.
Workload labels may vary depending on the DSE version in use;e.g. DSE 5.1 may report two distinct workloads:
Search
and Analytics
, while DSE 5.0 would report a single
SearchAnalytics
workload instead. The driver simply returns the workload labels as reported by
DSE, without any form of pre-processing.
When the information is unavailable, this property returns an empty array.
Constructor
Host
()Creates a new Host instance.
Methods
canBeConsideredAsUp
()Determines if the host can be considered as UP
getCassandraVersion
()Returns an array containing the Cassandra Version as an Array of Numbers having the major version in the first position.
getDseVersion
()Gets the DSE version of the host as an Array, containing the major version in the first position.
isUp
()Determines if the node is UP now (seen as UP by the driver).