MongoDB\Driver\Server::isPassive

(mongodb >=1.0.0)

MongoDB\Driver\Server::isPassiveChecks if this server is a passive member of a replica set

说明

final public MongoDB\Driver\Server::isPassive ( void ) : bool

Returns whether this server is a » passive member of a replica set (i.e. its priority is 0).

参数

此函数没有参数。

返回值

Returns TRUE if this server is a passive member of a replica set, and FALSE otherwise.

错误/异常

参见

相关文章
php mongodb driver the mongodb driver server classphp mongodb driver cursor checks if the cursor may have additional resultsphp mongodb driver monitoring commandfailedevent returns the server on which the command was executedphp mongodb driver monitoring commandsucceededevent returns the server on which the command was executedphp mongodb driver readconcern checks if this is the default read concernphp mongodb driver server create a new server not used php mongodb driver server execute one or more write operations on this serverphp mongodb driver server execute a database command on this serverphp mongodb driver server execute a database query on this serverphp mongodb driver server execute a database command that reads on this serverphp mongodb driver server execute a database command that reads and writes on this serverphp mongodb driver server execute a database command that writes on this serverphp mongodb driver server returns an array of tags describing this server in a replica setphp mongodb driver server checks if this server is an arbiter member of a replica setphp mongodb driver server checks if this server is a hidden member of a replica setphp mongodb driver server checks if this server is a passive member of a replica setphp mongodb driver server checks if this server is a primary member of a replica setphp mongodb driver server checks if this server is a secondary member of a replica setphp mongodb driver writeconcern checks if this is the default write concernphp mongodb driver writeresult returns the server associated with this write result
关注编程学问公众号