C# 클래스 FoundationDB.Client.FdbCluster

FoundationDB Cluster
상속: IFdbCluster
파일 보기 프로젝트 열기: BedeGaming/foundationdb-dotnet-client 1 사용 예제들

Private Properties

프로퍼티 타입 설명
OpenDatabaseInternalAsync Task
ThrowIfDisposed void

공개 메소드들

메소드 설명
Dispose ( ) : void

Close the connection with the FoundationDB cluster

FdbCluster ( IFdbClusterHandler handler, string path ) : FoundationDB.Client.Core

Wraps a cluster handle

OpenDatabaseAsync ( string databaseName, FdbSubspace subspace, bool readOnly, CancellationToken cancellationToken ) : Task

Opens a database on this cluster, configured to only access a specific subspace of keys

Any attempt to use a key outside the specified subspace will throw an exception

SetOption ( FdbClusterOption option ) : void

Set an option on this cluster that does not take any parameter

SetOption ( FdbClusterOption option, long value ) : void

Set an option on this cluster that takes an integer value

SetOption ( FdbClusterOption option, string value ) : void

Set an option on this cluster that takes a string value

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
OpenDatabaseInternalAsync ( string databaseName, FdbSubspace subspace, bool readOnly, bool ownsCluster, CancellationToken cancellationToken ) : Task

Opens a database on this cluster

As of Beta2, the only supported database name is 'DB'

ThrowIfDisposed ( ) : void

메소드 상세

Dispose() 공개 메소드

Close the connection with the FoundationDB cluster
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

FdbCluster() 공개 메소드

Wraps a cluster handle
public FdbCluster ( IFdbClusterHandler handler, string path ) : FoundationDB.Client.Core
handler IFdbClusterHandler
path string
리턴 FoundationDB.Client.Core

OpenDatabaseAsync() 공개 메소드

Opens a database on this cluster, configured to only access a specific subspace of keys
Any attempt to use a key outside the specified subspace will throw an exception
If is anything other than 'DB' If the token is cancelled
public OpenDatabaseAsync ( string databaseName, FdbSubspace subspace, bool readOnly, CancellationToken cancellationToken ) : Task
databaseName string Name of the database. Must be 'DB' (as of Beta 2)
subspace FdbSubspace Subspace of keys that will be accessed.
readOnly bool If true, the database will only allow read operations.
cancellationToken System.Threading.CancellationToken Cancellation Token (optionnal) for the connect operation
리턴 Task

SetOption() 공개 메소드

Set an option on this cluster that does not take any parameter
public SetOption ( FdbClusterOption option ) : void
option FdbClusterOption Option to set
리턴 void

SetOption() 공개 메소드

Set an option on this cluster that takes an integer value
public SetOption ( FdbClusterOption option, long value ) : void
option FdbClusterOption Option to set
value long Value of the parameter
리턴 void

SetOption() 공개 메소드

Set an option on this cluster that takes a string value
public SetOption ( FdbClusterOption option, string value ) : void
option FdbClusterOption Option to set
value string Value of the parameter (can be null)
리턴 void