|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.MongoAdmin
@ManagedResource(description="Mongo Admin Operations") public class MongoAdmin
Mongo server administration exposed via JMX annotations
| Constructor Summary | |
|---|---|
MongoAdmin(com.mongodb.Mongo mongo)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MongoAdmin(com.mongodb.Mongo mongo)
| Method Detail |
|---|
@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.
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||