C# Класс CqlSharp.Network.Cluster

Represents a Cassandra cluster
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Cluster System
DistillProtocolVersion byte
ExecQuery Task
GetClusterInfoAsync Task
GetNodeFromDataReader Node
InDiscoveryScope bool
OnClusterChange void
OpenAsync Task
OpenAsyncInternal Task
SetupMaintenanceConnection void

Открытые методы

Метод Описание
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

ToString ( ) : string

Returns a System.String that represents this instance.

Приватные методы

Метод Описание
Cluster ( CqlConnectionStringBuilder config ) : System

Initializes a new instance of the Cluster class.

DistillProtocolVersion ( string release ) : byte

Distills the protocol version.

ExecQuery ( Connection connection, string cql, Logger logger, CancellationToken token ) : Task

Executes a query.

GetClusterInfoAsync ( Node seed, Logger logger, CancellationToken token ) : Task

Gets all nodes that make up the cluster

GetNodeFromDataReader ( CqlDataReader reader, Logger logger ) : Node
InDiscoveryScope ( Node reference, Node target, DiscoveryScope discoveryScope ) : bool

Checks wether a node is in the discovery scope.

OnClusterChange ( object source, ClusterChangedEvent args ) : void
OpenAsync ( Logger logger, CancellationToken token ) : Task

Opens the cluster for queries.

OpenAsyncInternal ( Logger logger, CancellationToken token ) : Task

Opens the cluster for queries. Contains actual implementation and will be called only once per cluster

SetupMaintenanceConnection ( Logger logger ) : void

Setups the maintenance channel.

Описание методов

Dispose() публичный Метод

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
Результат void

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string