Метод | Описание | |
---|---|---|
ReplicaSetMongoServerProxy ( MongoServerSettings settings ) : System |
Initializes a new instance of the ReplicaSetMongoServerProxy class.
|
|
ReplicaSetMongoServerProxy ( MongoServerSettings serverSettings, IEnumerable |
Initializes a new instance of the ReplicaSetMongoServerProxy class.
|
Метод | Описание | |
---|---|---|
ChooseServerInstance ( |
||
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.
|
|
ProcessConnectedInstanceStateChange ( MongoServerInstance instance ) : void |
Processes the connected instance state change.
|
Метод | Описание | |
---|---|---|
GetMatchingInstance ( List |
Gets a randomly selected matching instance.
|
|
ProcessConnectedPrimaryStateChange ( MongoServerInstance instance ) : void | ||
ProcessConnectedSecondaryStateChange ( MongoServerInstance instance ) : void |
protected ChooseServerInstance ( |
||
connectedInstances | ||
readPreference | ReadPreference | |
Результат | 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 |
protected ProcessConnectedInstanceStateChange ( MongoServerInstance instance ) : void | ||
instance | MongoServerInstance | The instance. |
Результат | void |
public ReplicaSetMongoServerProxy ( MongoServerSettings settings ) : System | ||
settings | MongoServerSettings | The settings. |
Результат | System |
public ReplicaSetMongoServerProxy ( MongoServerSettings serverSettings, IEnumerable |
||
serverSettings | MongoServerSettings | The server settings. |
instances | IEnumerable |
The instances. |
stateChangeQueue | BlockingQueue |
The state change queue. |
connectionAttempt | int | The connection attempt. |
Результат | System |