1 7 8 package org.jboss.net.jmx.adaptor; 9 10 11 import java.rmi.Remote ; 12 import java.rmi.RemoteException ; 13 import java.util.Set ; 14 15 import javax.management.Attribute ; 16 import javax.management.AttributeList ; 17 import javax.management.ObjectName ; 18 import javax.management.QueryExp ; 19 import javax.management.ObjectInstance ; 20 import javax.management.NotificationFilter ; 21 import javax.management.MBeanInfo ; 22 23 import javax.management.AttributeNotFoundException ; 24 import javax.management.InstanceAlreadyExistsException ; 25 import javax.management.InstanceNotFoundException ; 26 import javax.management.IntrospectionException ; 27 import javax.management.InvalidAttributeValueException ; 28 import javax.management.ListenerNotFoundException ; 29 import javax.management.MBeanException ; 30 import javax.management.MBeanRegistrationException ; 31 import javax.management.NotCompliantMBeanException ; 32 import javax.management.ReflectionException ; 33 34 41 public interface RemoteAdaptor extends Remote 42 { 43 44 46 48 public ObjectInstance createMBean( 49 String pClassName, 50 ObjectName pName 51 ) throws 52 ReflectionException , 53 InstanceAlreadyExistsException , 54 MBeanRegistrationException , 55 MBeanException , 56 NotCompliantMBeanException , 57 RemoteException ; 58 59 public ObjectInstance createMBean( 60 String pClassName, 61 ObjectName pName, 62 ObjectName pLoaderName 63 ) throws 64 ReflectionException , 65 InstanceAlreadyExistsException , 66 MBeanRegistrationException , 67 MBeanException , 68 NotCompliantMBeanException , 69 InstanceNotFoundException , 70 RemoteException ; 71 72 public ObjectInstance createMBean( 73 String pClassName, 74 ObjectName pName, 75 Object [] pParams, 76 String [] pSignature 77 ) throws 78 ReflectionException , 79 InstanceAlreadyExistsException , 80 MBeanRegistrationException , 81 MBeanException , 82 NotCompliantMBeanException , 83 RemoteException ; 84 85 public ObjectInstance createMBean( 86 String pClassName, 87 ObjectName pName, 88 ObjectName pLoaderName, 89 Object [] pParams, 90 String [] pSignature 91 ) throws 92 ReflectionException , 93 InstanceAlreadyExistsException , 94 MBeanRegistrationException , 95 MBeanException , 96 NotCompliantMBeanException , 97 InstanceNotFoundException , 98 RemoteException ; 99 100 public void unregisterMBean( 101 ObjectName pName 102 ) throws 103 InstanceNotFoundException , 104 MBeanRegistrationException , 105 RemoteException ; 106 107 public ObjectInstance getObjectInstance( 108 ObjectName pName 109 ) throws 110 InstanceNotFoundException , 111 RemoteException ; 112 113 public Set queryMBeans( 114 ObjectName pName, 115 QueryExp pQuery 116 ) throws 117 RemoteException ; 118 119 public Set queryNames( 120 ObjectName pName, 121 QueryExp pQuery 122 ) throws 123 RemoteException ; 124 125 public boolean isRegistered( 126 ObjectName pName 127 ) throws 128 RemoteException ; 129 130 public boolean isInstanceOf( 131 ObjectName pName, 132 String pClassName 133 ) throws 134 InstanceNotFoundException , 135 RemoteException ; 136 137 public Integer getMBeanCount( 138 ) throws 139 RemoteException ; 140 141 public Object getAttribute( 142 ObjectName pName, 143 String pAttribute 144 ) throws 145 MBeanException , 146 AttributeNotFoundException , 147 InstanceNotFoundException , 148 ReflectionException , 149 RemoteException ; 150 151 public AttributeList getAttributes( 152 ObjectName pName, 153 String [] pAttributes 154 ) throws 155 InstanceNotFoundException , 156 ReflectionException , 157 RemoteException ; 158 159 public void setAttribute( 160 ObjectName pName, 161 Attribute pAttribute 162 ) throws 163 InstanceNotFoundException , 164 AttributeNotFoundException , 165 InvalidAttributeValueException , 166 MBeanException , 167 ReflectionException , 168 RemoteException ; 169 170 public AttributeList setAttributes( 171 ObjectName pName, 172 AttributeList pAttributes 173 ) throws 174 InstanceNotFoundException , 175 ReflectionException , 176 RemoteException ; 177 178 public Object invoke( 179 ObjectName pName, 180 String pActionName, 181 Object [] pParams, 182 String [] pSignature 183 ) throws 184 InstanceNotFoundException , 185 MBeanException , 186 ReflectionException , 187 RemoteException ; 188 189 public String getDefaultDomain( 190 ) throws 191 RemoteException ; 192 193 public void addNotificationListener( 194 ObjectName pName, 195 ObjectName pListener, 196 NotificationFilter pFilter, 197 Object pHandback 198 ) throws 199 InstanceNotFoundException , 200 RemoteException ; 201 202 public void removeNotificationListener( 203 ObjectName pName, 204 ObjectName pListener 205 ) throws 206 InstanceNotFoundException , 207 ListenerNotFoundException , 208 RemoteException ; 209 210 public MBeanInfo getMBeanInfo( 211 ObjectName pName 212 ) throws 213 InstanceNotFoundException , 214 IntrospectionException , 215 ReflectionException , 216 RemoteException ; 217 218 } 219 | Popular Tags |