Constructor
new Host()
Represents a Cassandra node.
Extends
- EventEmitter
Members
address :String
Gets ip address and port number of the node separated by `:`.
Type:
- String
cassandraVersion :String
Gets string containing the Cassandra version.
Type:
- String
datacenter :String
Gets data center name of the node.
Type:
- String
rack :String
Gets rack name of the node.
Type:
- String
tokens :Array
Gets the tokens assigned to the node.
Type:
- Array
Methods
canBeConsideredAsUp() → {boolean}
Determines if the host can be considered as UP
Returns:
- Type
- boolean
getCassandraVersion() → {Array.<Number>}
Returns an array containing the Cassandra Version as an Array of Numbers having the major version in the first
position.
Returns:
- Type
- Array.<Number>
isUp() → {boolean}
Determines if the node is UP now (seen as UP by the driver).
Returns:
- Type
- boolean