[JAVA-244] MongoURI for Java Driver should support all speced options (e.g. w, fsync, etc) Created: 28/Dec/10  Updated: 25/Feb/11  Resolved: 24/Feb/11

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.5

Type: Improvement Priority: Minor - P4
Reporter: Brendan W. McAdams Assignee: Brendan W. McAdams
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-284 Support replica set name in MongoClie... Closed
Backwards Compatibility: Fully Compatible

 Description   

The MongoURI format which the Java driver supports and is leveraged by the Hadoop driver should support the Options we define as valid for a Mongo URI in http://www.mongodb.org/display/DOCS/Connections

We currently ignore the options on parse.



 Comments   
Comment by auto [ 05/Jan/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-244 - Support for options including defined standard connection
pool params. Unit testing of mixed args
https://github.com/mongodb/mongo-java-driver/commit/1d4aba36129245ce878771cdd7d5edd523ce803f

Comment by auto [ 05/Jan/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-244 Changed URI Options to match the new universal values
https://github.com/mongodb/mongo-java-driver/commit/b05af1eba23ae4201862fac3c53168388185fe67

Comment by auto [ 05/Jan/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-244

Comment by Brendan W. McAdams [ 05/Jan/11 ]

Valid Java URI Options, first pass:

maxPoolSize -> MongoOptions.connectionsPerHost
minPoolSize -> <NO MAPPING>
waitQueueMultiple -> MongoOptions.threadsAllowedToBlockForConnectionMultiplier
waitQueueTimeoutMS -> MongoOptions.maxWaitTime
connectTimeoutMS -> MongoOptions.connectTimeout
socketTimeoutMS -> MongOptions.socketTimeout
autoConnectRetry -> MongOptions.autoConnectRetry
slaveOK -> MongoOptions.slaveOK
safe -> MongoOptions.safe
w -> MongoOptions.w
wtimeout -> MongoOptions.wtimeout
fsync -> MongOptions.fsync

Currently , No way for Java driver to support speced options of connect=direct|replset or replicaset=name

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