|
The MongoDB\Driver\ServerDescription classIntroductionThe MongoDB\Driver\ServerDescription class is a value object that represents a server to which the driver is connected. Instances of this class are returned by MongoDB\Driver\Server::getServerDescription and MongoDB\Driver\Monitoring\ServerChangedEvent methods. Class synopsisMongoDB\Driver\ServerDescription
final
class MongoDB\Driver\ServerDescription
{
/* Constants */
const
string
MongoDB\Driver\ServerDescription::TYPE_UNKNOWN = "Unknown";
const
string
MongoDB\Driver\ServerDescription::TYPE_STANDALONE = "Standalone";
const
string
MongoDB\Driver\ServerDescription::TYPE_MONGOS = "Mongos";
const
string
MongoDB\Driver\ServerDescription::TYPE_POSSIBLE_PRIMARY = "PossiblePrimary";
const
string
MongoDB\Driver\ServerDescription::TYPE_RS_PRIMARY = "RSPrimary";
const
string
MongoDB\Driver\ServerDescription::TYPE_RS_SECONDARY = "RSSecondary";
const
string
MongoDB\Driver\ServerDescription::TYPE_RS_ARBITER = "RSArbiter";
const
string
MongoDB\Driver\ServerDescription::TYPE_RS_OTHER = "RSOther";
const
string
MongoDB\Driver\ServerDescription::TYPE_RS_GHOST = "RSGhost";
const
string
MongoDB\Driver\ServerDescription::TYPE_LOAD_BALANCER = "LoadBalancer";
/* Methods */
final public array getHelloResponse()
final public string getHost()
final public int getLastUpdateTime()
final public int getPort()
final public intnull getRoundTripTime()
final public string getType()
}Predefined Constants
|