Reputation: 21200
I am wondering whether I can enumerate all the MBeans
getting from ManagementFactory.getRuntimeMXBean
?
Upvotes: 2
Views: 410
Reputation: 23171
You can use the queryMBeans method on the MBeanServerConnection to list all the beans on a service (just pass null in for both parameters).
To do that using ManagementFactory
, call
ManagementFactory.getPlatformMBeanServer().queryMBeans(null,null);
Upvotes: 3