[JAVA-799] Make it possible to get the replica set status Created: 29/Mar/13 Updated: 25/Jun/13 Resolved: 25/Jun/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.11.0 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Andreas Hubold | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
It would be really useful if one could get the replica set status in the Java driver. Please add an API to get the information as known from the Mongo Shell's {{rs.status()} function. |
| Comments |
| Comment by Jeffrey Yemin [ 25/Jun/13 ] | |
|
Duplicates | |
| Comment by Andreas Hubold [ 29/Mar/13 ] | |
|
Thank you, that already helps a lot. But the driver's view would be even more interesting. Would be cool if it could be implemented in some future version. | |
| Comment by Jeffrey Yemin [ 29/Mar/13 ] | |
|
If you want rs.status(), you can just run the replSetGetStatus command, e.g.:
If you want the driver's view of the health of the replica set (ping time, which nodes are reachable, etc), that would require a new API. |