@Deprecated
    public CommandResult getStats() {
        BsonDocument commandDocument = new BsonDocument("dbStats", new BsonInt32(1)).append("scale", new BsonInt32(1));
        return executeCommand(commandDocument);
    }
@Deprecated
    public CommandResult getStats() {
        BsonDocument commandDocument = new BsonDocument("dbStats", new BsonInt32(1)).append("scale", new BsonInt32(1));
        return executeCommand(commandDocument);
    }
@ Deprecated public CommandResult getStats ( ) { BsonDocument commandDocument = new BsonDocument ( "dbStats" , new BsonInt32 ( 1 ) ) . append ( "scale" , new BsonInt32 ( 1 ) ) ; return executeCommand ( commandDocument ) ; }
Helper method for calling a 'dbStats' command. It returns storage statistics for a given database.

@return result of the execution
@throws MongoException if the operation failed
@mongodb.driver.manual reference/command/dbStats/ Database Stats
@deprecated Prefer {@link #command(DBObject)} to run the dbStats command
Helper method for calling a dbStats command . It returns storage statistics for a given database .