Click or drag to resize

Host Class

Represents a Cassandra node.
Inheritance Hierarchy
SystemObject
  DseHost

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.6.0
Syntax
C#
public class Host : IEquatable<Host>

The Host type exposes the following members.

Constructors
  NameDescription
Public methodHost
Creates a new instance of Host.
Top
Properties
  NameDescription
Public propertyAddress
Gets the node address.
Public propertyCassandraVersion
The Cassandra version the host is running.
Remarks
The value returned can be null if the information is unavailable.
Public propertyDatacenter
Gets the name of the datacenter this host is part of. The returned datacenter name is the one as known by Cassandra. Also note that it is possible for this information to not be available. In that case this method returns null and caller should always expect that possibility.
Public propertyDseVersion
Gets the DSE version the server is running. This property might be null on older server versions.
Public propertyIsConsiderablyUp
This property is going to be removed in future versions, use IsUp instead. Used to determines if the host can be considered as UP
Public propertyIsUp
Determines if the host is UP for the driver
Public propertyRack
Gets the name of the rack this host is part of. The returned rack name is the one as known by Cassandra. Also note that it is possible for this information to not be available. In that case this method returns null and caller should always expect that possibility.
Public propertyWorkloads
Gets the DSE Workloads the host is running.

This is based on the "workload" or "workloads" columns in system.local and system.peers.

Workload labels may vary depending on the DSE version in use; e.g. DSE 5.1 may report two distinct workloads: Search and Analytics, while DSE 5.0 would report a single SearchAnalytics workload instead. The driver simply returns the workload labels as reported by DSE, without any form of pre-processing.

When the information is unavailable, this property returns an empty collection.

Top
Methods
  NameDescription
Public methodBringUpIfDown
Returns true if the host was DOWN and it was set as UP.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(Host)
Determines if the this instance can be considered equal to the provided host.
Public methodGetHashCode
The hash value of the address of the host
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetAsRemoved
Public methodSetDown
Sets the Host as Down. Returns false if it was already considered as Down by the driver.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference