[JAVA-1762] Cannot retrieve statistics from MongoDatabase Created: 15/Apr/15 Updated: 15/Apr/15 Resolved: 15/Apr/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jochen Kemnade | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
In 2.x, there was com.mongodb.DB.getStats(). In 3.0.0, there is no equvalent in com.mongodb.client.MongoDatabase |
| Comments |
| Comment by Ross Lawley [ 15/Apr/15 ] | |
|
Hi jkemnade In 3.0.0 we didn't add helpers for general commands as they can easily be run by using the runCommand method. A full list of database commands can be found in the mongodb reference section. dbStats is a simple command and its equivalent in 3.0 would be:
For future reference, the best place for questions regarding MongoDB usage or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there. |