java.lang.Object
org.springframework.data.mongodb.core.MongoAdmin
- All Implemented Interfaces:
MongoAdminOperations
@Deprecated(since="4.5",
forRemoval=true)
@ManagedResource(description="Mongo Admin Operations")
public class MongoAdmin
extends Object
implements MongoAdminOperations
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.5
Mongo server administration exposed via JMX annotations
- Author:
- Mark Pollack, Thomas Darimont, Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionMongoAdmin(com.mongodb.client.MongoClient client) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDatabase(String databaseName) Deprecated, for removal: This API element is subject to removal in a future version.voiddropDatabase(String databaseName) Deprecated, for removal: This API element is subject to removal in a future version.getDatabaseStats(String databaseName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
MongoAdmin
public MongoAdmin(com.mongodb.client.MongoClient client) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
client- the underlyingMongoClientused for data access.- Since:
- 2.2
-
-
Method Details
-
dropDatabase
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
dropDatabasein interfaceMongoAdminOperations
-
createDatabase
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createDatabasein interfaceMongoAdminOperations
-
getDatabaseStats
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDatabaseStatsin interfaceMongoAdminOperations
-
getServerStatus
Deprecated, for removal: This API element is subject to removal in a future version.
-