C# Class MongoDB.Driver.MongoServerInstance

Represents an instance of a MongoDB server host.
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

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

Private Methods

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

Method Details

GetIPEndPoint() public méthode

Gets the IP end point of this server instance.
public GetIPEndPoint ( ) : IPEndPoint
Résultat System.Net.IPEndPoint

Ping() public méthode

Checks whether the server is alive (throws an exception if not).
public Ping ( ) : void
Résultat void

VerifyState() public méthode

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