C# Class MongoDB.Driver.MongoServerInstance

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

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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

Ping() public method

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

VerifyState() public method

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