@Path(value="/v1/jmx") public class MBeanResource extends Object
| Constructor and Description |
|---|
MBeanResource(MBeanServer mbeanServer,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
MBeanRepresentation |
getMBean(ObjectName objectName) |
Object |
getMBean(ObjectName objectName,
String attributeName) |
List<MBeanRepresentation> |
getMBeans() |
String |
getMBeansUi() |
@Inject public MBeanResource(MBeanServer mbeanServer, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@GET @Produces(value="text/html") public String getMBeansUi() throws Exception
Exception@GET @Path(value="mbean") @Produces(value="application/json") public List<MBeanRepresentation> getMBeans() throws JMException
JMException@GET
@Path(value="mbean/{objectName}")
@Produces(value="application/json")
public MBeanRepresentation getMBean(@PathParam(value="objectName")
ObjectName objectName)
throws JMException
JMException@GET
@Path(value="mbean/{objectName}/{attributeName}")
@Produces(value="application/json")
public Object getMBean(@PathParam(value="objectName")
ObjectName objectName,
@PathParam(value="attributeName")
String attributeName)
throws JMException
JMExceptionCopyright © 2010-2014 Airlift. All Rights Reserved.