Inherits

Object

Methods

ip

Returns host ip that clients use to connect to this host.

Returns:
Type Details
IPAddr host ip that clients use to connect to this host.

id

Returns host id.

Note
Host id can be nil before cluster has connected.
Returns:
Type Details
(Uuid or nil) host id.

datacenter

Returns host datacenter

Note
Host datacenter can be nil before cluster has connected.
Returns:
Type Details
(String or nil) host datacenter

rack

Returns host rack

Note
Host rack can be nil before cluster has connected.
Returns:
Type Details
(String or nil) host rack

release_version

Returns version of cassandra that a host is running

Note
Host’s cassandra version can be nil before cluster has connected.
Returns:
Type Details
(String or nil) version of cassandra that a host is running

tokens

Returns a list of tokens owned by this host

Note
Host tokens will be empty before cluster has connected.
Returns:
Type Details
Array<String> a list of tokens owned by this host

status

Returns host status. Must be :up or :down

Returns:
Type Details
Symbol host status. Must be :up or :down

broadcast_address

Returns broadcast address, if available.

Note
This is the public IP address of the host if the cluster is deployed across multiple Amazon EC2 regions (or equivalently multiple networks). Cassandra nodes in other EC2 regions use this address to connect to this host.
Returns:
Type Details
(IPAddr or String) broadcast address, if available.

listen_address

Returns listen address, if available.

Note
This is the address that other Cassandra nodes use to connect to this host.
Returns:
Type Details
(IPAddr or String) listen address, if available.

up?

Returns whether this host’s status is :up

Returns:
Type Details
Boolean whether this host’s status is :up

down?

Returns whether this host’s status is :down

Returns:
Type Details
Boolean whether this host’s status is :down