C# Class CqlSharp.Network.Cluster

Represents a Cassandra cluster
Afficher le fichier Open project: reuzel/CqlSharp Class Usage Examples

Private Properties

Свойство Type Description
Cluster System
DistillProtocolVersion byte
ExecQuery Task
GetClusterInfoAsync Task
GetNodeFromDataReader Node
InDiscoveryScope bool
OnClusterChange void
OpenAsync Task
OpenAsyncInternal Task
SetupMaintenanceConnection void

Méthodes publiques

Méthode Description
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Méthode Description
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.

Method Details

Dispose() public méthode

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
Résultat void

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string