@ThreadSafe public class ReplicaSetStatus extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
_closed |
protected Mongo |
_mongo |
protected MongoOptions |
_mongoOptions |
protected List<ServerAddress> |
_mongosAddresses |
protected com.mongodb.ConnectionStatus.BackgroundUpdater |
_updater |
protected static DBObject |
isMasterCmd |
protected static float |
latencySmoothFactor |
protected static MongoOptions |
mongoOptionsDefaults |
protected static int |
updaterIntervalMS |
protected static int |
updaterIntervalNoMasterMS |
Modifier and Type | Method and Description |
---|---|
ServerAddress |
getMaster() |
int |
getMaxBsonObjectSize()
Gets the maximum size for a BSON object supported by the current master server.
|
String |
getName() |
boolean |
isMaster(ServerAddress srv) |
String |
toString() |
protected com.mongodb.ConnectionStatus.BackgroundUpdater _updater
protected final Mongo _mongo
protected final List<ServerAddress> _mongosAddresses
protected volatile boolean _closed
protected final MongoOptions _mongoOptions
protected static int updaterIntervalMS
protected static int updaterIntervalNoMasterMS
protected static final MongoOptions mongoOptionsDefaults
protected static final float latencySmoothFactor
protected static final DBObject isMasterCmd
public String getName()
public ServerAddress getMaster()
MongoException
public boolean isMaster(ServerAddress srv)
srv
- the server to compareMongoException
public int getMaxBsonObjectSize()
MongoException