@ThreadSafe
public class ReplicaSetStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
_closed |
protected Mongo |
_mongo |
protected MongoOptions |
_mongoOptions |
protected java.util.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.
|
java.lang.String |
getName() |
boolean |
isMaster(ServerAddress srv) |
java.lang.String |
toString() |
protected com.mongodb.ConnectionStatus.BackgroundUpdater _updater
protected final Mongo _mongo
protected final java.util.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 java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public ServerAddress getMaster()
MongoException
public boolean isMaster(ServerAddress srv)
srv
- the server to compareMongoException
public int getMaxBsonObjectSize()
MongoException