C# 클래스 MongoDB.Driver.Internal.ShardedMongoServerProxy

Connects to a number of mongos' and distributes load based on ping times.
상속: MultipleInstanceMongoServerProxy
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver

공개 메소드들

메소드 설명
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