Метод | Описание | |
---|---|---|
ShardedMongoServerProxy ( MongoServerSettings settings ) : System |
Initializes a new instance of the ShardedMongoServerProxy class.
|
|
ShardedMongoServerProxy ( MongoServerSettings settings, IEnumerable |
Initializes a new instance of the ShardedMongoServerProxy class.
|
Метод | Описание | |
---|---|---|
ChooseServerInstance ( |
Chooses the server instance.
|
|
DetermineServerState ( MongoServerState currentState, IEnumerable |
Determines the state of the server.
|
|
IsValidInstance ( MongoServerInstance instance ) : bool |
Determines whether the instance is a valid. If not, the instance is removed.
|
protected ChooseServerInstance ( |
||
connectedInstances | The connected instances. | |
readPreference | ReadPreference | The read preference. |
Результат | MongoServerInstance |
protected DetermineServerState ( MongoServerState currentState, IEnumerable |
||
currentState | MongoServerState | State of the current. |
instances | IEnumerable |
The instances. |
Результат | MongoServerState |
protected IsValidInstance ( MongoServerInstance instance ) : bool | ||
instance | MongoServerInstance | The instance. |
Результат | bool |
public ShardedMongoServerProxy ( MongoServerSettings settings ) : System | ||
settings | MongoServerSettings | The settings. |
Результат | System |
public ShardedMongoServerProxy ( MongoServerSettings settings, IEnumerable |
||
settings | MongoServerSettings | The settings. |
instances | IEnumerable |
The instances. |
stateChangedQueue | BlockingQueue |
The state changed queue. |
connectionAttempt | int | The connection attempt. |
Результат | System |