public abstract class AbstractMonitor extends Object
Constructor and Description |
---|
AbstractMonitor() |
Modifier and Type | Method and Description |
---|---|
DB |
getDb(String databaseName) |
CommandResult |
getServerStatus() |
void |
setPassword(String password)
Sets the password to use to authenticate with the Mongo database.
|
void |
setUsername(String username)
Sets the username to use to connect to the Mongo database
|
protected Mongo mongo
public void setUsername(String username)
username
- The username to usepublic void setPassword(String password)
password
- The password to usepublic CommandResult getServerStatus()
Copyright © 2012. All Rights Reserved.