Method | Description | |
---|---|---|
ReplicaSetMongoServerProxy ( MongoServerSettings settings ) : System |
Initializes a new instance of the ReplicaSetMongoServerProxy class.
|
|
ReplicaSetMongoServerProxy ( MongoServerSettings serverSettings, IEnumerable |
Initializes a new instance of the ReplicaSetMongoServerProxy class.
|
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
GetMatchingInstance ( List |
Gets a randomly selected matching instance.
|
|
ProcessConnectedPrimaryStateChange ( MongoServerInstance instance ) : void | ||
ProcessConnectedSecondaryStateChange ( MongoServerInstance instance ) : void |
protected ChooseServerInstance ( |
||
connectedInstances | ||
readPreference | ReadPreference | |
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 |
protected ProcessConnectedInstanceStateChange ( MongoServerInstance instance ) : void | ||
instance | MongoServerInstance | The instance. |
return | void |
public ReplicaSetMongoServerProxy ( MongoServerSettings settings ) : System | ||
settings | MongoServerSettings | The settings. |
return | 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. |
return | System |