public class JPPFMBeanServerConnection extends Object implements MBeanServerConnection, Closeable
MBeanServerConnection interface for JPPF JMX remote connectors.| Constructor and Description |
|---|
JPPFMBeanServerConnection(JPPFJMXConnector connector)
Initialize with the specified message handler.
|
public JPPFMBeanServerConnection(JPPFJMXConnector connector)
connector - the JMX connector that created this mbean server connection.public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException
createMBean in interface MBeanServerConnectionReflectionExceptionInstanceAlreadyExistsExceptionMBeanRegistrationExceptionMBeanExceptionNotCompliantMBeanExceptionIOExceptionpublic ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException
createMBean in interface MBeanServerConnectionReflectionExceptionInstanceAlreadyExistsExceptionMBeanRegistrationExceptionMBeanExceptionNotCompliantMBeanExceptionIOExceptionpublic ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException, IOException
unregisterMBean in interface MBeanServerConnectionInstanceNotFoundExceptionMBeanRegistrationExceptionIOExceptionpublic ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException, IOException
getObjectInstance in interface MBeanServerConnectionInstanceNotFoundExceptionIOExceptionpublic Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query) throws IOException
queryMBeans in interface MBeanServerConnectionIOExceptionpublic Set<ObjectName> queryNames(ObjectName name, QueryExp query) throws IOException
queryNames in interface MBeanServerConnectionIOExceptionpublic boolean isRegistered(ObjectName name) throws IOException
isRegistered in interface MBeanServerConnectionIOExceptionpublic Integer getMBeanCount() throws IOException
getMBeanCount in interface MBeanServerConnectionIOExceptionpublic Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, IOException
getAttribute in interface MBeanServerConnectionMBeanExceptionAttributeNotFoundExceptionInstanceNotFoundExceptionReflectionExceptionIOExceptionpublic AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, IOException
getAttributes in interface MBeanServerConnectionInstanceNotFoundExceptionReflectionExceptionIOExceptionpublic void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException
setAttribute in interface MBeanServerConnectionInstanceNotFoundExceptionAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionIOExceptionpublic AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, IOException
setAttributes in interface MBeanServerConnectionInstanceNotFoundExceptionReflectionExceptionIOExceptionpublic Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException
invoke in interface MBeanServerConnectionInstanceNotFoundExceptionMBeanExceptionReflectionExceptionIOExceptionpublic String getDefaultDomain() throws IOException
getDefaultDomain in interface MBeanServerConnectionIOExceptionpublic String[] getDomains() throws IOException
getDomains in interface MBeanServerConnectionIOExceptionpublic void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException
addNotificationListener in interface MBeanServerConnectionInstanceNotFoundExceptionIOExceptionpublic void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException
addNotificationListener in interface MBeanServerConnectionInstanceNotFoundExceptionIOExceptionpublic void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException
removeNotificationListener in interface MBeanServerConnectionInstanceNotFoundExceptionListenerNotFoundExceptionIOExceptionpublic void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException, IOException
removeNotificationListener in interface MBeanServerConnectionInstanceNotFoundExceptionListenerNotFoundExceptionIOExceptionpublic void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException
removeNotificationListener in interface MBeanServerConnectionInstanceNotFoundExceptionListenerNotFoundExceptionIOExceptionpublic void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException, IOException
removeNotificationListener in interface MBeanServerConnectionInstanceNotFoundExceptionListenerNotFoundExceptionIOExceptionpublic MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException
getMBeanInfo in interface MBeanServerConnectionInstanceNotFoundExceptionIntrospectionExceptionReflectionExceptionIOExceptionpublic boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException, IOException
isInstanceOf in interface MBeanServerConnectionInstanceNotFoundExceptionIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic JMXMessageHandler getMessageHandler()
public void handleNotification(JMXNotification jmxNotification) throws Exception
jmxNotification - the notification message to process.Exception - if any error occurs.Copyright © 2005-2018 JPPF Team.