@ManagedResource(description="Mongo Admin Operations") public class MongoAdmin extends Object implements MongoAdminOperations
| Constructor and Description |
|---|
MongoAdmin(com.mongodb.Mongo mongo) |
| Modifier and Type | Method and Description |
|---|---|
void |
createDatabase(String databaseName) |
void |
dropDatabase(String databaseName) |
String |
getDatabaseStats(String databaseName) |
void |
setAuthenticationDatabaseName(String authenticationDatabaseName)
Sets the authenticationDatabaseName to use to authenticate with the Mongo database.
|
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
|
@ManagedOperation public void dropDatabase(String databaseName)
dropDatabase in interface MongoAdminOperations@ManagedOperation public void createDatabase(String databaseName)
createDatabase in interface MongoAdminOperations@ManagedOperation public String getDatabaseStats(String databaseName)
getDatabaseStats in interface MongoAdminOperationspublic void setUsername(String username)
username - The username to usepublic void setPassword(String password)
password - The password to usepublic void setAuthenticationDatabaseName(String authenticationDatabaseName)
authenticationDatabaseName - The authenticationDatabaseName to use.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.