C# Class Couchbase.CouchbasePool

Socket pool using the Couchbase server's dynamic node list
Inheritance: ICouchbaseServerPool
显示文件 Open project: e-travel/couchbase-net-client

Private Properties

Property Type Description
CouchbasePool System
GetFirstAddress System.Net.IPAddress
ICouchbaseServerPool VBucket
IDisposable void
IServerPool IEnumerable
IServerPool IMemcachedNode
IServerPool void
InitBasic InternalState
InitNodes void
InitVBucket InternalState
Initialize void
NodeFail void
ReconfigurePool void
ReinitializeLocator void
ValidateVBucketMap void
rezCallback void

Public Methods

Method Description
CouchbasePool ( ICouchbaseClientConfiguration configuration ) : System

Initializes a new instance of the T:Couchbase.CouchbasePool.

CouchbasePool ( ICouchbaseClientConfiguration configuration, string bucketName, string bucketPassword ) : System

Initializes a new instance of the T:Couchbase.CouchbasePool class using the specified configuration, bucket name and password.

Protected Methods

Method Description
CreateNode ( IPEndPoint endpoint, ISaslAuthenticationProvider auth, object>.Dictionary nodeInfo ) : IMemcachedNode

Private Methods

Method Description
CouchbasePool ( ICouchbaseClientConfiguration configuration, string bucket ) : System
GetFirstAddress ( string hostname ) : IPAddress
ICouchbaseServerPool ( string key ) : VBucket
IDisposable ( ) : void
IServerPool ( ) : IEnumerable
IServerPool ( string key ) : IMemcachedNode
IServerPool ( ) : void
InitBasic ( ClusterConfig config, ISaslAuthenticationProvider auth ) : InternalState
InitNodes ( ClusterConfig config ) : void
InitVBucket ( ClusterConfig config, ISaslAuthenticationProvider auth ) : InternalState
Initialize ( ICouchbaseClientConfiguration configuration, string bucketName, string bucketPassword ) : void
NodeFail ( IMemcachedNode node ) : void
ReconfigurePool ( ClusterConfig config ) : void
ReinitializeLocator ( InternalState previousState ) : void
ValidateVBucketMap ( VBucketConfig vbsm, int knownNodeCount ) : void
rezCallback ( object o ) : void

Method Details

CouchbasePool() public method

Initializes a new instance of the T:Couchbase.CouchbasePool.
public CouchbasePool ( ICouchbaseClientConfiguration configuration ) : System
configuration ICouchbaseClientConfiguration The configuration to be used.
return System

CouchbasePool() public method

Initializes a new instance of the T:Couchbase.CouchbasePool class using the specified configuration, bucket name and password.
public CouchbasePool ( ICouchbaseClientConfiguration configuration, string bucketName, string bucketPassword ) : System
configuration ICouchbaseClientConfiguration The configuration to be used.
bucketName string The name of the bucket to connect to. Overrides the configuration's Bucket property.
bucketPassword string The password to the bucket. Overrides the configuration's BucketPassword property.
return System

CreateNode() protected method

protected CreateNode ( IPEndPoint endpoint, ISaslAuthenticationProvider auth, object>.Dictionary nodeInfo ) : IMemcachedNode
endpoint System.Net.IPEndPoint
auth ISaslAuthenticationProvider
nodeInfo object>.Dictionary
return IMemcachedNode