MongoDB\Driver\CursorId::__toString
MongoDB\Driver\Server::__construct
MongoDB\Driver
PHP Manual

# The MongoDB\Driver\Server class

(mongodb >=0.2.0)

## Introduction

## Class synopsis

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 ;
/* Methods */
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 )
}

## Predefined Constants

`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\Server::__construct — Description
- MongoDB\Driver\Server::executeBulkWrite — Description
- MongoDB\Driver\Server::executeCommand — Description
- MongoDB\Driver\Server::executeQuery — Description
- MongoDB\Driver\Server::getHost — Description
- MongoDB\Driver\Server::getInfo — Description
- MongoDB\Driver\Server::getLatency — Description
- MongoDB\Driver\Server::getPort — Description
- MongoDB\Driver\Server::getState — Description
- MongoDB\Driver\Server::getType — Description
- MongoDB\Driver\Server::isDelayed — Description
- MongoDB\Driver\Server::isPassive — Description

MongoDB\Driver\CursorId::__toString
MongoDB\Driver\Server::__construct
MongoDB\Driver
PHP Manual