MongoDB\Driver\Server::getType

(mongodb >=1.0.0)

MongoDB\Driver\Server::getTypeReturns an integer denoting the type of this server

说明

final public MongoDB\Driver\Server::getType ( void ) : int

Returns an integer denoting the type of this server. The value will correlate with a MongoDB\Driver\Server constant.

参数

此函数没有参数。

返回值

Returns an integer denoting the type of this server.

错误/异常

参见

相关文章
php mongodb bson binaryinterface returns the binaryinterface s typephp mongodb driver cursor returns the server associated with this cursorphp mongodb driver cursor returns an array containing all results for this cursorphp mongodb driver monitoring commandfailedevent returns the command namephp mongodb driver monitoring commandfailedevent returns the command s duration in microsecondsphp mongodb driver monitoring commandfailedevent returns the server on which the command was executedphp mongodb driver monitoring commandstartedevent returns the server on which the command was executedphp mongodb driver monitoring commandsucceededevent returns the command namephp mongodb driver monitoring commandsucceededevent returns the command s duration in microsecondsphp mongodb driver monitoring commandsucceededevent returns the server on which the command was executedphp mongodb driver exception runtimeexception returns whether an error label is associated with an exceptionphp mongodb driver server returns the hostname of this serverphp mongodb driver server returns an array of information about this serverphp mongodb driver server returns the latency of this serverphp mongodb driver server returns the port on which this server is listeningphp mongodb driver server returns an array of tags describing this server in a replica setphp mongodb driver server returns an integer denoting the type of this serverphp mongodb driver server checks if this server is a passive member of a replica setphp mongodb driver exception writeexception returns the writeresult for the failed write operationphp mongodb driver writeresult returns the server associated with this write result
关注编程学问公众号