Package io.airlift.jmx
Class MBeanResource
- java.lang.Object
-
- io.airlift.jmx.MBeanResource
-
@Path("/v1/jmx") public class MBeanResource extends Object
-
-
Constructor Summary
Constructors Constructor Description MBeanResource(MBeanServer mbeanServer, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MBeanRepresentationgetMBean(ObjectName objectName)ObjectgetMBean(ObjectName objectName, String attributeName)List<MBeanRepresentation>getMBeans()StringgetMBeansUi()
-
-
-
Constructor Detail
-
MBeanResource
@Inject public MBeanResource(MBeanServer mbeanServer, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getMBeansUi
@GET @Produces("text/html") public String getMBeansUi() throws Exception- Throws:
Exception
-
getMBeans
@GET @Path("mbean") @Produces("application/json") public List<MBeanRepresentation> getMBeans() throws JMException- Throws:
JMException
-
getMBean
@GET @Path("mbean/{objectName}") @Produces("application/json") public MBeanRepresentation getMBean(@PathParam("objectName") ObjectName objectName) throws JMException- Throws:
JMException
-
getMBean
@GET @Path("mbean/{objectName}/{attributeName}") @Produces("application/json") public Object getMBean(@PathParam("objectName") ObjectName objectName, @PathParam("attributeName") String attributeName) throws JMException- Throws:
JMException
-
-