Class MongoAdmin
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 TypeMethodDescriptionvoid
createDatabase
(String databaseName) Deprecated, for removal: This API element is subject to removal in a future version.void
dropDatabase
(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 underlyingMongoClient
used 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:
dropDatabase
in interfaceMongoAdminOperations
-
createDatabase
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createDatabase
in interfaceMongoAdminOperations
-
getDatabaseStats
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDatabaseStats
in interfaceMongoAdminOperations
-
getServerStatus
Deprecated, for removal: This API element is subject to removal in a future version.
-