Package io.airlift.jmx.http.rpc
Class HttpJmxConnector.HttpMBeanServerConnection
java.lang.Object
io.airlift.jmx.http.rpc.HttpJmxConnector.HttpMBeanServerConnection
- All Implemented Interfaces:
MBeanServerConnection
- Enclosing class:
HttpJmxConnector
public static class HttpJmxConnector.HttpMBeanServerConnection
extends Object
implements MBeanServerConnection
-
Constructor Summary
ConstructorsConstructorDescriptionHttpMBeanServerConnection(URI baseUri, HttpMBeanServerCredentials credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) voidaddNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) createMBean(String className, ObjectName name) createMBean(String className, ObjectName name, Object[] params, String[] signature) createMBean(String className, ObjectName name, ObjectName loaderName) createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) getAttribute(ObjectName name, String attribute) getAttributes(ObjectName name, String[] attributes) String[]getMBeanInfo(ObjectName name) getObjectInstance(ObjectName name) invoke(ObjectName name, String operationName, Object[] params, String[] signature) booleanisInstanceOf(ObjectName name, String className) booleanisRegistered(ObjectName name) queryMBeans(ObjectName name, QueryExp query) queryNames(ObjectName name, QueryExp query) voidremoveNotificationListener(ObjectName name, NotificationListener listener) voidremoveNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) voidremoveNotificationListener(ObjectName name, ObjectName listener) voidremoveNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) voidsetAttribute(ObjectName name, Attribute attribute) setAttributes(ObjectName name, AttributeList attributes) toString()voidunregisterMBean(ObjectName name)
-
Constructor Details
-
HttpMBeanServerConnection
-
-
Method Details
-
getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException, IOException - Specified by:
getObjectInstancein interfaceMBeanServerConnection- Throws:
InstanceNotFoundExceptionIOException
-
queryMBeans
- Specified by:
queryMBeansin interfaceMBeanServerConnection- Throws:
IOException
-
queryNames
- Specified by:
queryNamesin interfaceMBeanServerConnection- Throws:
IOException
-
isRegistered
- Specified by:
isRegisteredin interfaceMBeanServerConnection- Throws:
IOException
-
getMBeanCount
- Specified by:
getMBeanCountin interfaceMBeanServerConnection- Throws:
IOException
-
getAttribute
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, IOException - Specified by:
getAttributein interfaceMBeanServerConnection- Throws:
MBeanExceptionAttributeNotFoundExceptionInstanceNotFoundExceptionReflectionExceptionIOException
-
getAttributes
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, IOException - Specified by:
getAttributesin interfaceMBeanServerConnection- Throws:
InstanceNotFoundExceptionReflectionExceptionIOException
-
setAttribute
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException - Specified by:
setAttributein interfaceMBeanServerConnection- Throws:
InstanceNotFoundExceptionAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionIOException
-
setAttributes
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, IOException - Specified by:
setAttributesin interfaceMBeanServerConnection- Throws:
InstanceNotFoundExceptionReflectionExceptionIOException
-
invoke
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException - Specified by:
invokein interfaceMBeanServerConnection- Throws:
InstanceNotFoundExceptionMBeanExceptionReflectionExceptionIOException
-
getDefaultDomain
- Specified by:
getDefaultDomainin interfaceMBeanServerConnection- Throws:
IOException
-
getDomains
- Specified by:
getDomainsin interfaceMBeanServerConnection- Throws:
IOException
-
getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException - Specified by:
getMBeanInfoin interfaceMBeanServerConnection- Throws:
InstanceNotFoundExceptionIntrospectionExceptionReflectionExceptionIOException
-
isInstanceOf
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException, IOException - Specified by:
isInstanceOfin interfaceMBeanServerConnection- Throws:
InstanceNotFoundExceptionIOException
-
toString
-
createMBean
- Specified by:
createMBeanin interfaceMBeanServerConnection
-
createMBean
- Specified by:
createMBeanin interfaceMBeanServerConnection
-
createMBean
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) - Specified by:
createMBeanin interfaceMBeanServerConnection
-
createMBean
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) - Specified by:
createMBeanin interfaceMBeanServerConnection
-
unregisterMBean
- Specified by:
unregisterMBeanin interfaceMBeanServerConnection
-
addNotificationListener
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListenerin interfaceMBeanServerConnection
-
addNotificationListener
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListenerin interfaceMBeanServerConnection
-
removeNotificationListener
- Specified by:
removeNotificationListenerin interfaceMBeanServerConnection
-
removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) - Specified by:
removeNotificationListenerin interfaceMBeanServerConnection
-
removeNotificationListener
- Specified by:
removeNotificationListenerin interfaceMBeanServerConnection
-
removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
removeNotificationListenerin interfaceMBeanServerConnection
-