Was this page helpful?
Host¶
Host()
Represents a Cassandra node.
Constructor¶
Extends¶
- EventEmitter
Members¶
address :String
Gets ip address and port number of the node separated by :.
Type:
- String
Source
cassandraVersion :String
Gets string containing the Cassandra version.
Type:
- String
Source
datacenter :String
Gets data center name of the node.
Type:
- String
Source
dseVersion
Source
Deprecated
Not supported by the driver. Usage will throw an error.
hostId :Uuid
Gets the id of the host.
This identifier is used by the server for internal communication / gossip.
Type:
- Uuid
Source
rack :String
Gets rack name of the node.
Type:
- String
Source
tokens :Array
Gets the tokens assigned to the node.
Type:
- Array
Source
workloads
Source
Deprecated
Not supported by the driver. Usage will throw an error.
Methods¶
canBeConsideredAsUp() → {boolean}
This endpoint is not yet implemented, and its usage will throw an error
Determines if the host can be considered as UP. Deprecated: Use Host#isUp() instead.
Source
Returns:
- Type
- boolean
getCassandraVersion() → {Array:.<Number:>}
This endpoint is not yet implemented, and its usage will throw an error
Returns an array containing the Cassandra Version as an Array of Numbers having the major version in the first position.
Source
Returns:
getDseVersion()
Source
Deprecated
Not supported by the driver. Usage will throw an error.
isUp() → {boolean}
This endpoint is not yet implemented, and its usage will throw an error
Determines if the node is UP now (seen as UP by the driver).
Source
Returns:
- Type
- boolean
(package, static) fromRust(hostWrapper)
Creates a Host instance from a Rust HostWrapper.
Parameters:
| Name | Type | Description |
|---|---|---|
hostWrapper |
_rust.HostWrapper |
Source