C# Класс MongoDB.Driver.MongoServerInstance

Represents an instance of a MongoDB server host.
Показать файл Открыть проект Примеры использования класса

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