Method | Description | |
---|---|---|
ShardedMongoServerProxy ( MongoServerSettings settings ) : System |
Initializes a new instance of the ShardedMongoServerProxy class.
|
|
ShardedMongoServerProxy ( MongoServerSettings settings, IEnumerable |
Initializes a new instance of the ShardedMongoServerProxy class.
|
Method | Description | |
---|---|---|
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. |
return | MongoServerInstance |
protected DetermineServerState ( MongoServerState currentState, IEnumerable |
||
currentState | MongoServerState | State of the current. |
instances | IEnumerable |
The instances. |
return | MongoServerState |
protected IsValidInstance ( MongoServerInstance instance ) : bool | ||
instance | MongoServerInstance | The instance. |
return | bool |
public ShardedMongoServerProxy ( MongoServerSettings settings ) : System | ||
settings | MongoServerSettings | The settings. |
return | 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. |
return | System |