MongoDB\Driver
PHP Manual

The MongoDB\Driver\Server class

(mongodb >=1.0.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 private __construct ( void )
final public MongoDB\Driver\WriteResult executeBulkWrite ( string $namespace , MongoDB\Driver\BulkWrite $bulk [, MongoDB\Driver\WriteConcern $writeConcern ] )
final public MongoDB\Driver\Cursor executeCommand ( string $db , MongoDB\Driver\Command $command [, MongoDB\Driver\ReadPreference $readPreference ] )
final public MongoDB\Driver\Cursor MongoDB\Driver\Manager::executeQuery ( string $namespace , MongoDB\Driver\Query $query [, MongoDB\Driver\ReadPreference $readPreference ] )
final public string getHost ( void )
final public array getInfo ( void )
final public string getLatency ( void )
final public int getPort ( void )
final public array getTags ( void )
final public int getType ( void )
final public bool isArbiter ( void )
final public bool isHidden ( void )
final public bool isPassive ( void )
final public bool isPrimary ( void )
final public bool isSecondary ( 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

Table of Contents


MongoDB\Driver
PHP Manual