public class ReplicaSetStatus extends Object
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 serverAddress) |
String |
toString() |
public String getName()
public ServerAddress getMaster()
MongoException
public boolean isMaster(ServerAddress serverAddress)
serverAddress
- the server to compareMongoException
public int getMaxBsonObjectSize()
MongoException