Inherits

Object

Methods

ip

Returns host ip

Returns:
Type Details
IPAddr host ip

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

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

eql?

(other) aliased as: ==

Returns whether this host has the same ip as the other

Parameters:
Name Type Details
other Host a host to compare
Returns:
Type Details
Boolean whether this host has the same ip as the other

inspect

Returns a CLI-friendly host representation

Returns:
Type Details
String a CLI-friendly host representation