C# 클래스 MongoDB.Driver.MongoServerInstance

Represents an instance of a MongoDB server host.
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AcquireConnection MongoConnection
Connect void
Disconnect void
DisconnectPermanently void
LookupServerInformation void
MongoServerInstance System
OnAveragePingTimeChanged void
OnStateChanged void
Ping void
ReleaseConnection void
SetState void
SetState void
StateVerificationTimerCallback void

공개 메소드들

메소드 설명
GetIPEndPoint ( ) : IPEndPoint

Gets the IP end point of this server instance.

Ping ( ) : void

Checks whether the server is alive (throws an exception if not).

VerifyState ( ) : void

Verifies the state of the server instance.

비공개 메소드들

메소드 설명
AcquireConnection ( string databaseName, MongoDB.Driver.MongoCredentials credentials ) : MongoConnection

Acquires the connection.

Connect ( ) : void

Connects this instance.

Disconnect ( ) : void

Disconnects this instance.

DisconnectPermanently ( ) : void

Disconnects this instance permanently.

LookupServerInformation ( MongoConnection connection ) : void
MongoServerInstance ( MongoServerSettings settings, MongoServerAddress address ) : System

Initializes a new instance of the MongoServerInstance class.

OnAveragePingTimeChanged ( ) : void
OnStateChanged ( ) : void
Ping ( MongoConnection connection ) : void
ReleaseConnection ( MongoConnection connection ) : void

Releases the connection.

SetState ( MongoServerState state ) : void

Sets the state.

SetState ( MongoServerState newState, ServerInformation newServerInfo ) : void This method must be called outside of a lock.
StateVerificationTimerCallback ( ) : void

메소드 상세

GetIPEndPoint() 공개 메소드

Gets the IP end point of this server instance.
public GetIPEndPoint ( ) : IPEndPoint
리턴 System.Net.IPEndPoint

Ping() 공개 메소드

Checks whether the server is alive (throws an exception if not).
public Ping ( ) : void
리턴 void

VerifyState() 공개 메소드

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