Package io.airlift.jmx
Class MBeanResource
java.lang.Object
io.airlift.jmx.MBeanResource
-
Constructor Summary
ConstructorsConstructorDescriptionMBeanResource(MBeanServer mbeanServer, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetMBean(ObjectName objectName) getMBean(ObjectName objectName, String attributeName)
-
Constructor Details
-
MBeanResource
@Inject public MBeanResource(MBeanServer mbeanServer, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getMBeansUi
- 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
-