@ 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 .