Class Cluster
Assembly: Couchbase.NetClient.dll
Syntax
public class Cluster : ICluster, ISearchRequester, IDisposable, IAsyncDisposable
Properties
|
Edit this page
View Source
AnalyticsIndexes
Allows a user to manage analytics indexes.
Declaration
public IAnalyticsIndexManager AnalyticsIndexes { get; }
Property Value
|
Edit this page
View Source
Buckets
Allows a user to manage a couchbase buckets resources.
Declaration
public IBucketManager Buckets { get; }
Property Value
|
Edit this page
View Source
ClusterServices
Declaration
public IServiceProvider ClusterServices { get; }
Property Value
|
Edit this page
View Source
EventingFunctions
Allows a user to read eventing functions, modify them and change their deployment state.
Declaration
public IEventingFunctionManager EventingFunctions { get; }
Property Value
|
Edit this page
View Source
QueryIndexes
Allows a user to manage query indexes.
Declaration
public IQueryIndexManager QueryIndexes { get; }
Property Value
|
Edit this page
View Source
SearchIndexes
Allows a user to manage search indexes.
Declaration
public ISearchIndexManager SearchIndexes { get; }
Property Value
|
Edit this page
View Source
Transactions
Declaration
public Transactions Transactions { get; }
Property Value
|
Edit this page
View Source
Users
Allows a user to manage the users for a couchbase server.
Declaration
public IUserManager Users { get; }
Property Value
Methods
|
Edit this page
View Source
AnalyticsQueryAsync<T>(string, AnalyticsOptions?)
Declaration
public Task<IAnalyticsResult<T>> AnalyticsQueryAsync<T>(string statement, AnalyticsOptions? options = null)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
BucketAsync(string)
Declaration
public ValueTask<IBucket> BucketAsync(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
ConnectAsync(ClusterOptions)
Declaration
public static Task<ICluster> ConnectAsync(ClusterOptions options)
Parameters
Returns
|
Edit this page
View Source
ConnectAsync(string, ClusterOptions?)
Declaration
public static Task<ICluster> ConnectAsync(string connectionString, ClusterOptions? options = null)
Parameters
Returns
|
Edit this page
View Source
ConnectAsync(string, Action<ClusterOptions>)
Declaration
public static Task<ICluster> ConnectAsync(string connectionString, Action<ClusterOptions> configureOptions)
Parameters
Returns
|
Edit this page
View Source
ConnectAsync(string, string, string)
Declaration
public static Task<ICluster> ConnectAsync(string connectionString, string username, string password)
Parameters
Returns
|
Edit this page
View Source
DiagnosticsAsync(DiagnosticsOptions?)
Creates diagnostic report that can be used to determine the healthfulness of the cluster. It does not proactively perform any I/O against the network.
Declaration
public Task<IDiagnosticsReport> DiagnosticsAsync(DiagnosticsOptions? options = null)
Parameters
Returns
|
Edit this page
View Source
Dispose()
Declaration
|
Edit this page
View Source
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources asynchronously.
Declaration
public ValueTask DisposeAsync()
Returns
|
Edit this page
View Source
EnsureBootstrapped()
Seam for unit tests and for supporting non-GC3P servers (prior to v6.5).
Declaration
protected virtual Task EnsureBootstrapped()
Returns
|
Edit this page
View Source
PingAsync(PingOptions?)
Actively performs I/O by application-level pinging services and returning their pinged status.
Declaration
public Task<IPingReport> PingAsync(PingOptions? options = null)
Parameters
Type |
Name |
Description |
PingOptions |
options |
Optional arguments.
|
Returns
|
Edit this page
View Source
QueryAsync<T>(string, QueryOptions?)
Declaration
public Task<IQueryResult<T>> QueryAsync<T>(string statement, QueryOptions? options = null)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
SearchAsync(string, SearchRequest, SearchOptions?)
Declaration
public Task<ISearchResult> SearchAsync(string indexName, SearchRequest searchRequest, SearchOptions? options = null)
Parameters
Returns
|
Edit this page
View Source
SearchQueryAsync(string, ISearchQuery, SearchOptions?)
Declaration
public Task<ISearchResult> SearchQueryAsync(string indexName, ISearchQuery query, SearchOptions? options = null)
Parameters
Returns
|
Edit this page
View Source
WaitUntilReadyAsync(TimeSpan, WaitUntilReadyOptions?)
Waits until bootstrapping has completed and all services have been initialized.
Declaration
public Task WaitUntilReadyAsync(TimeSpan timeout, WaitUntilReadyOptions? options = null)
Parameters
Returns
Implements
Extension Methods