C# Class CqlSharp.Network.Cluster

Represents a Cassandra cluster
Mostra file Open project: reuzel/CqlSharp Class Usage Examples

Private Properties

Property Type Description
Cluster System
DistillProtocolVersion byte
ExecQuery Task
GetClusterInfoAsync Task
GetNodeFromDataReader Node
InDiscoveryScope bool
OnClusterChange void
OpenAsync Task
OpenAsyncInternal Task
SetupMaintenanceConnection void

Public Methods

Method Description
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Method 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 method

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string