Example usage for javax.management ObjectName WILDCARD

List of usage examples for javax.management ObjectName WILDCARD

Introduction

In this page you can find the example usage for javax.management ObjectName WILDCARD.

Prototype

ObjectName WILDCARD

To view the source code for javax.management ObjectName WILDCARD.

Click Source Link

Document

Defines the wildcard "*:*" ObjectName.

Usage

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();
}