List of usage examples for javax.management ObjectName WILDCARD
ObjectName WILDCARD
To view the source code for javax.management ObjectName WILDCARD.
Click Source Link
From source file:io.airlift.jmx.MBeanResource.java
@GET @Path("mbean") @Produces(MediaType.APPLICATION_JSON)//from ww w.ja v a 2s.co m public List<MBeanRepresentation> getMBeans() throws JMException { ImmutableList.Builder<MBeanRepresentation> mbeans = ImmutableList.builder(); for (ObjectName objectName : mbeanServer.queryNames(ObjectName.WILDCARD, null)) { mbeans.add(new MBeanRepresentation(mbeanServer, objectName, objectMapper)); } return mbeans.build(); }