C# Class MongoDB.Driver.Internal.DiscoveringMongoServerProxy

A proxy that dynamically discovers the type of server it is connecting to.
Inheritance: IMongoServerProxy
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
ChooseServerInstance ( ReadPreference readPreference ) : MongoServerInstance

Chooses the server instance.

Connect ( System.TimeSpan timeout, ReadPreference readPreference ) : void

Connects to the instances respecting the timeout and readPreference.

Disconnect ( ) : void

Disconnects this instance.

DiscoveringMongoServerProxy ( MongoServerSettings settings ) : System

Initializes a new instance of the DiscoveringMongoServerProxy class.

Ping ( ) : void

Pings this instance.

VerifyState ( ) : void

Verifies the state.

Private Methods

Method Description
CreateActualProxy ( MongoServerInstance instance, BlockingQueue connectionQueue ) : void
Discover ( System.TimeSpan timeout ) : void
EnsureInstanceManager ( System.TimeSpan timeout ) : void

Method Details

ChooseServerInstance() public method

Chooses the server instance.
public ChooseServerInstance ( ReadPreference readPreference ) : MongoServerInstance
readPreference ReadPreference The read preference.
return MongoServerInstance

Connect() public method

Connects to the instances respecting the timeout and readPreference.
public Connect ( System.TimeSpan timeout, ReadPreference readPreference ) : void
timeout System.TimeSpan The timeout.
readPreference ReadPreference The read preference.
return void

Disconnect() public method

Disconnects this instance.
public Disconnect ( ) : void
return void

DiscoveringMongoServerProxy() public method

Initializes a new instance of the DiscoveringMongoServerProxy class.
public DiscoveringMongoServerProxy ( MongoServerSettings settings ) : System
settings MongoServerSettings The settings.
return System

Ping() public method

Pings this instance.
public Ping ( ) : void
return void

VerifyState() public method

Verifies the state.
public VerifyState ( ) : void
return void