C# 클래스 MongoDB.Driver.Internal.DiscoveringMongoServerProxy

A proxy that dynamically discovers the type of server it is connecting to.
상속: IMongoServerProxy
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
CreateActualProxy ( MongoServerInstance instance, BlockingQueue connectionQueue ) : void
Discover ( System.TimeSpan timeout ) : void
EnsureInstanceManager ( System.TimeSpan timeout ) : void

메소드 상세

ChooseServerInstance() 공개 메소드

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

Connect() 공개 메소드

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.
리턴 void

Disconnect() 공개 메소드

Disconnects this instance.
public Disconnect ( ) : void
리턴 void

DiscoveringMongoServerProxy() 공개 메소드

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

Ping() 공개 메소드

Pings this instance.
public Ping ( ) : void
리턴 void

VerifyState() 공개 메소드

Verifies the state.
public VerifyState ( ) : void
리턴 void