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

rack

Gets rack name of the node.

Array

tokens

Gets the tokens assigned to the node.

Constructor

new

Host

()

Creates a new Host instance.

Methods

canBeConsideredAsUp

()

Determines if the host can be considered as UP

Returns:
Type Description
boolean

getCassandraVersion

()

Returns an array containing the Cassandra Version as an Array of Numbers having the major version in the first position.

Returns:
Type Description
Array<Number>

isUp

()

Determines if the node is UP now (seen as UP by the driver).

Returns:
Type Description
boolean