C# Class MongoDB.Driver.Internal.DiscoveringMongoServerProxy

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

Méthodes publiques

Méthode 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

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

Method Details

ChooseServerInstance() public méthode

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

Connect() public méthode

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.
Résultat void

Disconnect() public méthode

Disconnects this instance.
public Disconnect ( ) : void
Résultat void

DiscoveringMongoServerProxy() public méthode

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

Ping() public méthode

Pings this instance.
public Ping ( ) : void
Résultat void

VerifyState() public méthode

Verifies the state.
public VerifyState ( ) : void
Résultat void