Свойство | Тип | Описание | |
---|---|---|---|
DseCluster | System | ||
ICluster | ICollection |
||
ICluster | ISession | ||
ICluster | ISession | ||
OnCoreHostAdded | void | ||
OnCoreHostRemoved | void |
Метод | Описание | |
---|---|---|
AllHosts ( ) : ICollection |
Returns all known hosts of this cluster.
|
|
Builder ( ) : |
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 ( |
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, |
||
ICluster ( byte partitionKey ) : ICollection |
||
ICluster ( ) : ISession | ||
ICluster ( string keyspace ) : ISession | ||
OnCoreHostAdded ( Cassandra.Host h ) : void | ||
OnCoreHostRemoved ( Cassandra.Host h ) : void |
public static Builder ( ) : |
||
Результат |
public Connect ( string keyspace ) : IDseSession | ||
keyspace | string | |
Результат | IDseSession |
public GetHost ( |
||
address | ||
Результат | Cassandra.Host |
public GetReplicas ( string keyspace, byte partitionKey ) : ICollection |
||
keyspace | string | The keyspace name. |
partitionKey | byte | Byte array representing the partition key. |
Результат | ICollection |
public Shutdown ( int timeoutMs = -1 ) : void | ||
timeoutMs | int | |
Результат | void |