MongoDB\Driver\Manager
PHP Manual

MongoDB\Driver\Manager::selectServer

(No hay información de versión disponible, podría estar únicamente en SVN)

MongoDB\Driver\Manager::selectServerPreselect MongoDB node

Descripción

final public MongoDB\Driver\Server MongoDB\Driver\Manager::selectServer ( MongoDB\Driver\ReadPreference $readPreference )

Preselect a MongoDB node based on provided readPreference. This can be useful to gurantee a command runs on a specific server when operating in a mixed version cluster.

Parámetros

readPreference

Opcionalmente, un MongoDB\Driver\ReadPreference a donde redireccionar el comando. Si no se proporciona, se empleará el valor de la Preferencia de lectura establcecida por el URI de conexión de MongoDB.

Valores devueltos

Returns an instance of MongoDB\Driver\Server ready for action.


MongoDB\Driver\Manager
PHP Manual