public abstract class AbstractMonitor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.mongodb.Mongo |
mongo |
| Constructor and Description |
|---|
AbstractMonitor() |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DB |
getDb(String databaseName) |
com.mongodb.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
|
public void setUsername(String username)
username - The username to usepublic void setPassword(String password)
password - The password to usepublic com.mongodb.CommandResult getServerStatus()
public com.mongodb.DB getDb(String databaseName)
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.