The MongoDB\Driver\Server class


(mongodb >=0.2.0)

Обзор классов

final MongoDB\Driver\Server {
/* Constants */
const integer TYPE_MONGOS = 1 ;
const integer TYPE_STANDALONE = 2 ;
const integer TYPE_ARBITER = 3 ;
const integer TYPE_SECONDARY = 4 ;
const integer TYPE_PRIMARY = 5 ;
/* Методы */
final public __construct ( string $host , string $port [, array $options [, array $driverOptions ]] )
final public ReturnType executeBulkWrite ( string $namespace , BulkWrite $zwrite )
final public ReturnType executeCommand ( string $db , Command $command )
final public ReturnType executeQuery ( string $namespace , Query $zquery )
final public ReturnType getHost ( void )
final public ReturnType getInfo ( void )
final public ReturnType getLatency ( void )
final public ReturnType getPort ( void )
final public ReturnType getState ( void )
final public ReturnType getType ( void )
final public ReturnType isDelayed ( void )
final public ReturnType isPassive ( void )
}

Предопределенные константы

MongoDB\Driver\Server::TYPE_MONGOS

MongoDB\Driver\Server::TYPE_STANDALONE

MongoDB\Driver\Server::TYPE_ARBITER

MongoDB\Driver\Server::TYPE_SECONDARY

MongoDB\Driver\Server::TYPE_PRIMARY

Содержание