C# 클래스 Dse.DseCluster

Information and known state of a DSE cluster.

This is the main entry point of the DSE driver. It extends the CQL driver's ICluster instance with DSE-specific features.

상속: IDseCluster
파일 보기 프로젝트 열기: datastax/csharp-driver-dse

Private Properties

프로퍼티 타입 설명
DseCluster System
ICluster ICollection
ICluster ISession
ICluster ISession
OnCoreHostAdded void
OnCoreHostRemoved void

공개 메소드들

메소드 설명
AllHosts ( ) : ICollection

Returns all known hosts of this cluster.

Builder ( ) : DseClusterBuilder

Creates a new DseClusterBuilder instance.

Connect ( ) : IDseSession

Creates a new IDseSession for this cluster.

Connect ( string keyspace ) : IDseSession

Creates a new IDseSession for this cluster to a specific keyspaces.

Dispose ( ) : void

Calls Shutdown(int) with an infinite timeout.

GetHost ( IPEndPoint address ) : Cassandra.Host

Get a host instance for a given endpoint.

GetReplicas ( string keyspace, byte partitionKey ) : ICollection

Gets a collection of replicas for a given partitionKey on a given keyspace.

Shutdown ( int timeoutMs = -1 ) : void

Shutdown this cluster instance. This closes all connections from all the sessions of this instance and reclaim all resources used by it.

This method has no effect if the cluster has already been shutdown.

비공개 메소드들

메소드 설명
DseCluster ( ICluster coreCluster, DseConfiguration config ) : System
ICluster ( byte partitionKey ) : ICollection
ICluster ( ) : ISession
ICluster ( string keyspace ) : ISession
OnCoreHostAdded ( Cassandra.Host h ) : void
OnCoreHostRemoved ( Cassandra.Host h ) : void

메소드 상세

AllHosts() 공개 메소드

Returns all known hosts of this cluster.
public AllHosts ( ) : ICollection
리턴 ICollection

Builder() 공개 정적인 메소드

Creates a new DseClusterBuilder instance.
public static Builder ( ) : DseClusterBuilder
리턴 DseClusterBuilder

Connect() 공개 메소드

Creates a new IDseSession for this cluster.
public Connect ( ) : IDseSession
리턴 IDseSession

Connect() 공개 메소드

Creates a new IDseSession for this cluster to a specific keyspaces.
public Connect ( string keyspace ) : IDseSession
keyspace string
리턴 IDseSession

Dispose() 공개 메소드

Calls Shutdown(int) with an infinite timeout.
public Dispose ( ) : void
리턴 void

GetHost() 공개 메소드

Get a host instance for a given endpoint.
public GetHost ( IPEndPoint address ) : Cassandra.Host
address System.Net.IPEndPoint
리턴 Cassandra.Host

GetReplicas() 공개 메소드

Gets a collection of replicas for a given partitionKey on a given keyspace.
public GetReplicas ( string keyspace, byte partitionKey ) : ICollection
keyspace string The keyspace name.
partitionKey byte Byte array representing the partition key.
리턴 ICollection

Shutdown() 공개 메소드

Shutdown this cluster instance. This closes all connections from all the sessions of this instance and reclaim all resources used by it.

This method has no effect if the cluster has already been shutdown.

public Shutdown ( int timeoutMs = -1 ) : void
timeoutMs int
리턴 void