1 8 package mx4j.tools.remote; 9 10 import java.io.IOException ; 11 import java.util.Set ; 12 import javax.management.AttributeList ; 13 import javax.management.AttributeNotFoundException ; 14 import javax.management.InstanceAlreadyExistsException ; 15 import javax.management.InstanceNotFoundException ; 16 import javax.management.IntrospectionException ; 17 import javax.management.InvalidAttributeValueException ; 18 import javax.management.ListenerNotFoundException ; 19 import javax.management.MBeanException ; 20 import javax.management.MBeanInfo ; 21 import javax.management.MBeanRegistrationException ; 22 import javax.management.NotCompliantMBeanException ; 23 import javax.management.ObjectInstance ; 24 import javax.management.ObjectName ; 25 import javax.management.ReflectionException ; 26 import javax.security.auth.Subject ; 27 28 31 public interface JMXConnection 32 { 33 public void close() 34 throws IOException ; 35 36 public ObjectInstance createMBean(String className, ObjectName name, Object params, String [] signature, Subject delegate) 37 throws ReflectionException , 38 InstanceAlreadyExistsException , 39 MBeanRegistrationException , 40 MBeanException , 41 NotCompliantMBeanException , 42 IOException ; 43 44 public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object params, String [] signature, Subject delegate) 45 throws ReflectionException , 46 InstanceAlreadyExistsException , 47 MBeanRegistrationException , 48 MBeanException , 49 NotCompliantMBeanException , 50 InstanceNotFoundException , 51 IOException ; 52 53 public void unregisterMBean(ObjectName name, Subject delegate) 54 throws InstanceNotFoundException , 55 MBeanRegistrationException , 56 IOException ; 57 58 public ObjectInstance getObjectInstance(ObjectName name, Subject delegate) 59 throws InstanceNotFoundException , 60 IOException ; 61 62 public Set queryMBeans(ObjectName name, Object query, Subject delegate) 63 throws IOException ; 64 65 public Set queryNames(ObjectName name, Object query, Subject delegate) 66 throws IOException ; 67 68 public boolean isRegistered(ObjectName name, Subject delegate) 69 throws IOException ; 70 71 public Integer getMBeanCount(Subject delegate) 72 throws IOException ; 73 74 public Object getAttribute(ObjectName name, String attribute, Subject delegate) 75 throws MBeanException , 76 AttributeNotFoundException , 77 InstanceNotFoundException , 78 ReflectionException , 79 IOException ; 80 81 public AttributeList getAttributes(ObjectName name, String [] attributes, Subject delegate) 82 throws InstanceNotFoundException , 83 ReflectionException , 84 IOException ; 85 86 public void setAttribute(ObjectName name, Object attribute, Subject delegate) 87 throws InstanceNotFoundException , 88 AttributeNotFoundException , 89 InvalidAttributeValueException , 90 MBeanException , 91 ReflectionException , 92 IOException ; 93 94 public AttributeList setAttributes(ObjectName name, Object attributes, Subject delegate) 95 throws InstanceNotFoundException , 96 ReflectionException , 97 IOException ; 98 99 public Object invoke(ObjectName name, String operationName, Object params, String [] signature, Subject delegate) 100 throws InstanceNotFoundException , 101 MBeanException , 102 ReflectionException , 103 IOException ; 104 105 public String getDefaultDomain(Subject delegate) 106 throws IOException ; 107 108 public String [] getDomains(Subject delegate) 109 throws IOException ; 110 111 public MBeanInfo getMBeanInfo(ObjectName name, Subject delegate) 112 throws InstanceNotFoundException , 113 IntrospectionException , 114 ReflectionException , 115 IOException ; 116 117 public boolean isInstanceOf(ObjectName name, String className, Subject delegate) 118 throws InstanceNotFoundException , 119 IOException ; 120 121 public void addNotificationListener(ObjectName name, ObjectName listener, Object filter, Object handback, Subject delegate) 122 throws InstanceNotFoundException , 123 IOException ; 124 125 public void removeNotificationListener(ObjectName name, ObjectName listener, Subject delegate) 126 throws InstanceNotFoundException , 127 ListenerNotFoundException , 128 IOException ; 129 130 public void removeNotificationListener(ObjectName name, ObjectName listener, Object filter, Object handback, Subject delegate) 131 throws InstanceNotFoundException , 132 ListenerNotFoundException , 133 IOException ; 134 } 135 | Popular Tags |