[JAVA-1099] Deprecated JMX classes - what to use instead? Created: 30/Jan/14  Updated: 11/Sep/19  Resolved: 27/Mar/14

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

Type: Task Priority: Major - P3
Reporter: Sean Melody Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hi there,

I saw that the JMX / MBean classes in the Java driver in the 2.x driver in preparation for 3.0. Is there an alternative set of classes to use, especially to get the connection pool stats?



 Comments   
Comment by Jeffrey Yemin [ 27/Mar/14 ]

I'm closing this, but please re-open if your questions were not sufficiently addressed.

Comment by Jeffrey Yemin [ 31/Jan/14 ]

OK, so do you need any more information? The object name is coming in 2.12, and will be the same in 3.0.

Comment by Sean Melody [ 31/Jan/14 ]

We're just getting started with adding the Mongo connection pool stats to our existing exposed MBeans. We're looking for guidance for which classes so that we're not going to face a big change when we upgrade to 3.0.

Comment by Jeffrey Yemin [ 30/Jan/14 ]

We are changing the Object Name though:

"org.mongodb.driver:type=ConnectionPool,clusterId=%s,host=%s,port=%s"

Comment by Jeffrey Yemin [ 30/Jan/14 ]

How are you getting the stats currently? MBeans are still being created. See: https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/JMXConnectionPoolListener.java#L30-30.

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