[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:
Related
is related to GODRIVER-556 mongo.Client should provide topology ... Closed

 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

JAVA-3307
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/44539219cbdf95fe5bf12aff0567598bb80fca57

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.

Generated at Thu Feb 08 08:59:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.