[JAVA-3307] Add getClusterDescription method to MongoClient Created: 06/Jun/19 Updated: 28/Oct/23 Resolved: 14/Jun/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | 3.11.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The Spark connector cannot update to the sync driver because there is no method to get the addresses the client is connected to. In Spark the creation of the MongoClient is abstracted away in a factory, so its not possible to get the settings used to create it. |
| Comments |
| Comment by Githook User [ 14/Jun/19 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}Message: Add getClusterDescription method to com.mongodb.client.MongoClient
|
| Comment by Jeffrey Yemin [ 13/Jun/19 ] |
|
I propose a getClusterDescription method, which just returns the current description (no blocking) even if there are no connected servers. |