C# Класс MongoDB.Driver.Internal.ShardedMongoServerProxy

Connects to a number of mongos' and distributes load based on ping times.
Наследование: MultipleInstanceMongoServerProxy
Показать файл Открыть проект

Открытые методы

Метод Описание
ShardedMongoServerProxy ( MongoServerSettings settings ) : System

Initializes a new instance of the ShardedMongoServerProxy class.

ShardedMongoServerProxy ( MongoServerSettings settings, IEnumerable instances, BlockingQueue stateChangedQueue, int connectionAttempt ) : System

Initializes a new instance of the ShardedMongoServerProxy class.

Защищенные методы

Метод Описание
ChooseServerInstance ( ConnectedInstanceCollection connectedInstances, ReadPreference readPreference ) : MongoServerInstance

Chooses the server instance.

DetermineServerState ( MongoServerState currentState, IEnumerable instances ) : MongoServerState

Determines the state of the server.

IsValidInstance ( MongoServerInstance instance ) : bool

Determines whether the instance is a valid. If not, the instance is removed.

Описание методов

ChooseServerInstance() защищенный Метод

Chooses the server instance.
protected ChooseServerInstance ( ConnectedInstanceCollection connectedInstances, ReadPreference readPreference ) : MongoServerInstance
connectedInstances ConnectedInstanceCollection The connected instances.
readPreference ReadPreference The read preference.
Результат MongoServerInstance

DetermineServerState() защищенный Метод

Determines the state of the server.
protected DetermineServerState ( MongoServerState currentState, IEnumerable instances ) : MongoServerState
currentState MongoServerState State of the current.
instances IEnumerable The instances.
Результат MongoServerState

IsValidInstance() защищенный Метод

Determines whether the instance is a valid. If not, the instance is removed.
protected IsValidInstance ( MongoServerInstance instance ) : bool
instance MongoServerInstance The instance.
Результат bool

ShardedMongoServerProxy() публичный Метод

Initializes a new instance of the ShardedMongoServerProxy class.
public ShardedMongoServerProxy ( MongoServerSettings settings ) : System
settings MongoServerSettings The settings.
Результат System

ShardedMongoServerProxy() публичный Метод

Initializes a new instance of the ShardedMongoServerProxy class.
public ShardedMongoServerProxy ( MongoServerSettings settings, IEnumerable instances, BlockingQueue stateChangedQueue, int connectionAttempt ) : System
settings MongoServerSettings The settings.
instances IEnumerable The instances.
stateChangedQueue BlockingQueue The state changed queue.
connectionAttempt int The connection attempt.
Результат System