class Cassandra::Host
Inherits
Object
Methods
ip
Returns host ip that clients use to connect to this host.
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
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.
listen_address
Returns listen address, if available.
- Note
- This is the address that other Cassandra nodes use to connect to this host.
up?
Returns whether this host’s status is :up
down?
Returns whether this host’s status is :down