1 23 24 28 29 package com.sun.enterprise.admin.mbeanapi; 30 31 import java.util.ArrayList ; 32 import java.util.Properties ; 33 import javax.management.AttributeList ; 34 import javax.management.ObjectName ; 35 import javax.management.MBeanException ; 36 37 import com.sun.enterprise.admin.common.exception.JMSAdminException; 38 import com.sun.enterprise.admin.common.JMSStatus; 39 import com.sun.enterprise.admin.common.JMSDestinationInfo; 40 41 public interface IResourcesMBean { 42 43 public ObjectName createCustomResource( AttributeList attrList, 44 Properties props, 45 String tgtName ) 46 throws Exception ; 47 48 public ObjectName createExternalJndiResource( AttributeList attrList, 49 Properties props, 50 String tgtName) 51 throws Exception ; 52 53 public ObjectName createPersistenceManagerFactoryResource( AttributeList attrList, 54 Properties props, 55 String tgtName) 56 throws Exception ; 57 58 public ObjectName createPMFResourceWithJDBCResource( AttributeList attrList, 59 Properties props, 60 String tgtName) 61 throws Exception ; 62 63 public ObjectName createJmsConnectionFactory( AttributeList attrList, 64 Properties props, 65 String tgtName) 66 throws Exception ; 67 68 public ObjectName createJmsDestinationResource( AttributeList attrList, 69 Properties props, 70 String tgtName) 71 throws Exception ; 72 73 public ObjectName createJmsResource( AttributeList attrList, 74 Properties props, 75 String tgtName) 76 throws Exception ; 77 78 public ObjectName createJdbcConnectionPool( AttributeList attrList, 79 Properties props, 80 String tgtName) 81 throws Exception ; 82 83 public ObjectName createConnectorConnectionPool( AttributeList attrList, 84 Properties props, 85 String tgtName) 86 throws Exception ; 87 88 public ObjectName createConnectorResource( AttributeList attrList, 89 Properties props, 90 String tgtName) 91 throws Exception ; 92 93 public ObjectName createAdminObjectResource( AttributeList attrList, 94 Properties props, 95 String tgtName) 96 throws Exception ; 97 98 public ObjectName createJdbcResource( AttributeList attrList, 99 Properties props, 100 String tgtName) 101 throws Exception ; 102 103 public ObjectName createMailResource( AttributeList attrList, 104 Properties props, 105 String tgtName) 106 throws Exception ; 107 108 public ObjectName createResourceAdapterConfig( AttributeList attrList, 109 Properties props, 110 String tgtName) 111 throws Exception ; 112 113 116 public ObjectName getCustomResourceByJndiName( String key, String tgtName ) 117 throws Exception ; 118 119 public ObjectName getJdbcResourceByJndiName( String key, String tgtName ) 120 throws Exception ; 121 122 public ObjectName getJdbcConnectionPoolByName( String key, String tgtName ) 123 throws Exception ; 124 125 public ObjectName getExternalJndiResourceByJndiName( String key, String tgtName ) 126 throws Exception ; 127 128 public ObjectName getMailResourceByJndiName( String key, String tgtName ) 129 throws Exception ; 130 131 public ObjectName getConnectorResourceByJndiName( String key, String tgtName ) 132 throws Exception ; 133 134 public ObjectName getResourceAdapterConfigByResourceAdapterName( String key, String tgtName ) 135 throws Exception ; 136 137 public ObjectName getAdminObjectResourceByJndiName( String key, String tgtName ) 138 throws Exception ; 139 140 public ObjectName getPersistenceManagerFactoryResourceByJndiName( String key, String tgtName ) 141 throws Exception ; 142 143 public ObjectName getConnectorConnectionPoolByName( String key, String tgtName ) 144 throws Exception ; 145 146 public ObjectName [] getCustomResource( String tgtName ) 147 throws Exception ; 148 149 public ObjectName [] getPersistenceManagerFactoryResource( String tgtName ) 150 throws Exception ; 151 152 public ObjectName [] getJmsResource( String tgtName ) 153 throws Exception ; 154 155 public ObjectName [] getJmsConnectionFactory( String tgtName ) 156 throws Exception ; 157 158 public ObjectName [] getJmsDestinationResource( String tgtName ) 159 throws Exception ; 160 161 public ObjectName [] getJmsResource( String resType, String tgtName ) 162 throws Exception ; 163 164 public ObjectName [] getJdbcConnectionPool( String tgtName ) 165 throws Exception ; 166 167 public ObjectName [] getConnectorResource( String tgtName ) 168 throws Exception ; 169 170 public ObjectName [] getAdminObjectResource( String tgtName ) 171 throws Exception ; 172 173 public ObjectName [] getConnectorConnectionPool( String tgtName ) 174 throws Exception ; 175 176 public ObjectName [] getJdbcResource( String tgtName ) 177 throws Exception ; 178 179 public ObjectName [] getResourceAdapterConfig( String tgtName ) 180 throws Exception ; 181 182 public String getResourceAdapterConfig( String resAdapterConfig, Boolean verbose, String tgtName ) 183 throws Exception ; 184 185 186 public ObjectName [] getMailResource( String tgtName ) 187 throws Exception ; 188 189 public ObjectName [] getExternalJndiResource( String tgtName ) 190 throws Exception ; 191 192 public void deleteCustomResource( String name, String tgtName ) 193 throws Exception ; 194 195 public void deleteJdbcConnectionPool( String name, String tgtName ) 196 throws Exception ; 197 198 public void deleteJdbcConnectionPool( String name, Boolean cascade, String tgtName ) 199 throws Exception ; 200 201 public void deletePersistenceManagerFactoryResource( String name, String tgtName ) 202 throws Exception ; 203 204 public void deleteJmsConenctionFactory( String name, String tgtName ) 205 throws Exception ; 206 207 public void deleteJmsDestinationResource( String name, String tgtName ) 208 throws Exception ; 209 210 public void deleteJmsResource( String name, String tgtName ) 211 throws Exception ; 212 213 public void deleteConnectorResource( String name, String tgtName ) 214 throws Exception ; 215 216 public void deleteAdminObjectResource( String name, String tgtName ) 217 throws Exception ; 218 219 public void deleteConnectorConnectionPool( String name, String tgtName ) 220 throws Exception ; 221 222 public void deleteConnectorConnectionPool( String name, Boolean cascade, String tgtName ) 223 throws Exception ; 224 225 public void deleteJdbcResource( String name, String tgtName ) 226 throws Exception ; 227 228 public void deleteResourceAdapterConfig( String name, String tgtName ) 229 throws Exception ; 230 231 public void deleteMailResource( String name, String tgtName ) 232 throws Exception ; 233 234 public void deleteExternalJndiResource( String name, String tgtName ) 235 throws Exception ; 236 237 public ArrayList createResource(String resourceXMLFile, String tgtName) 238 throws Exception ; 239 240 public String [] getConnectionDefinitionNames(String rarName) 241 throws Exception ; 242 243 public Properties getResourceAdapterConfigProps(AttributeList attrList) 244 throws Exception ; 245 246 public Properties getMCFConfigProps(AttributeList attrList) 247 throws Exception ; 248 249 public Properties getAdminObjectConfigProps(AttributeList attrList) 250 throws Exception ; 251 252 public String [] getAdminObjectInterfaceNames(String rarName) 253 throws Exception ; 254 255 public Boolean pingConnectionPool(String poolName, String tgtName) throws Exception ; 256 257 public JMSStatus JMSPing() throws JMSAdminException; 258 259 public JMSStatus JMSPing(String username, String password, int port) 260 throws JMSAdminException; 261 262 public void createJMSDestination(String destName, String destType, Properties destProps, String tgtName) 263 throws JMSAdminException; 264 265 266 public void deleteJMSDestination(String destName, String destType, String tgtName) 267 throws JMSAdminException; 268 269 public void flushJMSDestination(String destName, String destType, String tgtName) 270 throws JMSAdminException; 271 272 public JMSDestinationInfo[] listJMSDestinations(String destType, String tgtName) 273 throws JMSAdminException; 274 275 public void createPhysicalDestination(AttributeList attrList ,Properties props, 276 String target)throws JMSAdminException,MBeanException ; 277 278 public void deletePhysicalDestination(String destName, String destType, 279 String target)throws JMSAdminException,MBeanException ; 280 281 public ObjectName [] listPhysicalDestinations(String target) 282 throws JMSAdminException,MBeanException ; 283 284 public String [] getMessageListenerTypes(String raName) 285 throws Exception ; 286 287 public Properties getActivationConfProps(String raName, 288 String msgLsnrType) 289 throws Exception ; 290 291 292 public Properties getActivationConfPropTypes(String raName, 293 String msgLsnrType) 294 throws Exception ; 295 } 296 297 | Popular Tags |