[JAVA-2170] Deprecate extraneous methods in ClusterDescription Created: 11/Apr/16  Updated: 19/Oct/16  Resolved: 13/Jun/16

Status: Closed
Project: Java Driver
Component/s: Cluster Management, Monitoring
Affects Version/s: None
Fix Version/s: 3.3.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There are methods in ClusterDescription that get a List<ServerDescription> according to various criteria. They are used to implement ServerSelector implementations, but they should really never have been made public. Before ClusterDescription is exposed to users in scope of JAVA-2139, these methods should be deprecated.



 Comments   
Comment by Githook User [ 13/Jun/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2170: Fix fragile unit test that depends on the order of servers in ClusterDescription.getShortDescription
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/84240c0bb94479195a669e54bc128fd1a9113346

Comment by Githook User [ 13/Jun/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2170: Deprecate ClusterDescription.getAll and add ClusterDescription.getServerDescriptions()
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/572a654e6e63d7ad8559336d707dcadfd235f1ab

Comment by Githook User [ 13/Jun/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2170: Deprecate ClusterDescription methods that should live in ServerSelector implementations

This doesn't yet remove internal usage of these methods in production or test code. It's just the deprecations.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/70b6d03f9aca0fbc0980d19a882ed07e35dbffab

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