Cassandra v1.0.0-beta.4 Cassandra.Host

Represents a Cassandra host

Summary

Functions

Chacks whether the host status is down or not

Creates a new Host struct from given data came from Cassandra system.peers or system.local tabels

Toggles the host status to status. When status is :get it tries to get host status in network

Chacks whether the host status is up or not

Functions

distance(host, data_center)
down?(host)

Chacks whether the host status is down or not

new(data, status \\ :down, data_center \\ nil, parser \\ fn x -> x end)

Creates a new Host struct from given data came from Cassandra system.peers or system.local tabels

toggle(host, status)

Toggles the host status to status. When status is :get it tries to get host status in network

up?(host)

Chacks whether the host status is up or not