@Path(value="jmx/local") @Immediate @RolesAllowed(value="operator") @Produces(value={"application/avro-x+json","application/json","application/avro+json","application/avro","application/octet-stream"}) @Beta public class JmxResource extends Object implements JmxRestApi
| Constructor and Description |
|---|
JmxResource() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
get(String mbeanName) |
Object |
getMBeanAttribute(String mbeanName,
String attrName) |
org.spf4j.jaxrs.StreamingArrayContent<org.spf4j.base.avro.jmx.MBeanAttributeInfo> |
getMBeanAttributes(String mbeanName) |
org.spf4j.jaxrs.StreamingArrayContent<org.spf4j.base.avro.jmx.AttributeValue> |
getMBeanAttributeValues(String mbeanName) |
org.spf4j.jaxrs.StreamingArrayContent<org.spf4j.base.avro.jmx.MBeanOperationInfo> |
getMBeanOperations(String mbeanName) |
org.spf4j.jaxrs.StreamingArrayContent<String> |
getMBeans() |
Object |
invoke(String mbeanName,
org.spf4j.base.avro.jmx.OperationInvocation invocation) |
void |
setMBeanAttribute(String mbeanName,
String attrName,
Object value) |
@GET public org.spf4j.jaxrs.StreamingArrayContent<String> getMBeans()
getMBeans in interface JmxRestApi@GET
@Path(value="{mbeanName}")
public String[] get(@PathParam(value="mbeanName")
String mbeanName)
get in interface JmxRestApi@GET
@Path(value="{mbeanName}/attributes")
public org.spf4j.jaxrs.StreamingArrayContent<org.spf4j.base.avro.jmx.MBeanAttributeInfo> getMBeanAttributes(@PathParam(value="mbeanName")
String mbeanName)
getMBeanAttributes in interface JmxRestApi@GET
@Path(value="{mbeanName}/attributes/values")
public org.spf4j.jaxrs.StreamingArrayContent<org.spf4j.base.avro.jmx.AttributeValue> getMBeanAttributeValues(@PathParam(value="mbeanName")
String mbeanName)
getMBeanAttributeValues in interface JmxRestApi@GET
@Path(value="{mbeanName}/attributes/values/{attrName}")
public Object getMBeanAttribute(@PathParam(value="mbeanName")
String mbeanName,
@PathParam(value="attrName")
String attrName)
throws MBeanException,
ReflectionException,
IOException
getMBeanAttribute in interface JmxRestApiMBeanExceptionReflectionExceptionIOException@POST
@Path(value="{mbeanName}/attributes/values/{attrName}")
@Consumes(value={"application/avro-x+json","application/json","application/avro+json","application/avro","application/octet-stream"})
public void setMBeanAttribute(@PathParam(value="mbeanName")
String mbeanName,
@PathParam(value="attrName")
String attrName,
Object value)
throws MBeanException,
ReflectionException,
IOException
setMBeanAttribute in interface JmxRestApiMBeanExceptionReflectionExceptionIOException@GET
@Path(value="{mbeanName}/operations")
public org.spf4j.jaxrs.StreamingArrayContent<org.spf4j.base.avro.jmx.MBeanOperationInfo> getMBeanOperations(@PathParam(value="mbeanName")
String mbeanName)
getMBeanOperations in interface JmxRestApi@POST
@Path(value="/{mbeanName}/operations")
@Consumes(value={"application/avro-x+json","application/json","application/avro+json","application/avro","application/octet-stream"})
public Object invoke(@PathParam(value="mbeanName")
String mbeanName,
org.spf4j.base.avro.jmx.OperationInvocation invocation)
throws MBeanException,
ReflectionException,
IOException
invoke in interface JmxRestApiMBeanExceptionReflectionExceptionIOExceptionCopyright © 2020 SPF4J. All rights reserved.