class Cassandra::Host
Inherits
Object
Methods
ip
Returns host ip
id
Returns host id.
- Note
- Host id can be
nil
before cluster has connected.
datacenter
Returns host datacenter
- Note
- Host datacenter can be
nil
before cluster has connected.
rack
Returns host rack
- Note
- Host rack can be
nil
before cluster has connected.
release_version
Returns version of cassandra that a host is running
- Note
- Host’s cassandra version can be
nil
before cluster has connected.
tokens
Returns a list of tokens owned by this host
- Note
- Host tokens will be empty before cluster has connected.
status
Returns host status. Must be :up
or :down
up?
Returns whether this host’s status is :up
down?
Returns whether this host’s status is :down
eql?
(other) aliased as: ==Returns whether this host has the same ip as the other
inspect
Returns a CLI-friendly host representation