1 23 package com.sun.enterprise; 24 25 import com.sun.enterprise.deployment.*; 26 import javax.management.*; 27 import javax.management.ObjectName ; 28 import com.sun.enterprise.management.agent.MEJBUtility; 29 30 36 public interface ManagementObjectManager { 37 38 public static final String RUNNING_STATE="Running"; 39 public static final String STOPPED_STATE="Stopped"; 40 public static final String FAILED_STATE="Failed"; 41 42 43 public static String J2EE_TYPE_EJB_MODULE = "EJBModule"; 44 public static String J2EE_TYPE_WEB_MODULE = "WebModule"; 45 public static String J2EE_TYPE_RAR_MODULE = "ResourceAdapterModule"; 46 public static String J2EE_TYPE_ACC_MODULE = "AppClientModule"; 47 public static String J2EE_TYPE_APPLICATION = "J2EEApplication"; 48 49 void registerJ2EEDomain(); 50 51 void registerJ2EEServer(); 52 void registerDasJ2EEServers(); 53 void registerDasJ2EEServer(String serverName); 54 void unregisterDasJ2EEServer(String serverName); 55 public String getServerBaseON(boolean amx, String serverName); 56 57 void registerJCAConnectionFactory(String jcaResName, String jcaConnFactName, 58 String managedConFact); 59 60 void registerJCAManagedConnectionFactory(String connFactName); 61 62 void registerJCAResource(String name, String raName, 63 String username, String password, 64 String [] propNames, String [] propValues); 65 66 void registerJDBCDataSource(String dsJndiName, 67 String dsName, 68 String url, 69 String username, 70 String password, 71 String [] propNames, 72 String [] propValues); 73 74 void registerJDBCDriver(String name); 75 76 void registerJDBCResource(String name); 77 78 void registerJMSResource(String name, String resType, 79 String username, String password, 80 String [] propNames, String [] propValues); 81 82 void registerAdminObjectResource(String name, String raName, String resType, 83 String [] propNames, String [] propValues); 84 85 void registerJNDIResource(String name); 86 87 void registerJTAResource(String name); 88 89 void registerJVM(); 90 91 void registerJavaMailResource(String name); 92 93 void registerRMI_IIOPResource(String name); 94 95 void unregisterStandAloneModule(String moduleType, String name); 96 97 void unregisterJCAResource(String name) throws Exception ; 98 99 void unregisterJavaMailResource(String name) throws Exception ; 100 101 void unregisterJMSResource(String name)throws Exception ; 102 103 void unregisterJDBCResource(String name) throws Exception ; 104 105 MEJBUtility getMEJBUtility(); 106 107 void unregisterAdminObjectResource(String name, String resourceType ) 108 throws Exception ; 109 110 void unregister(ObjectName objectName) throws Exception ; 111 112 Object getModuleUserData(String moduleID, int moduleType) throws Exception ; 113 114 void setModuleUserData(String moduleID, Object obj, int moduleType)throws Exception ; 115 116 118 120 void createAppMBean(Application application, String serverName, String appLocation) 121 throws MBeanException; 122 123 void deleteAppMBean(Application application, String serverName) 124 throws MBeanException; 125 126 void createAppMBeanModules(Application application, String serverName, String appLocation) 127 throws MBeanException; 128 129 void createAppMBeans(Application application, String serverName, String appLocation) 130 throws MBeanException; 131 132 void deleteAppMBeans(Application application, String serverName) 133 throws MBeanException; 134 135 136 138 void createEJBModuleMBean(EjbBundleDescriptor ejbBundleDescriptor, 139 String serverName, String appLocation) throws MBeanException; 140 141 void deleteEJBModuleMBean(EjbBundleDescriptor ejbBundleDescriptor, 142 String serverName) throws MBeanException; 143 144 void createEJBMBeans(EjbBundleDescriptor ejbBundleDescriptor, 145 String serverName) throws MBeanException; 146 147 void deleteEJBMBeans(EjbBundleDescriptor ejbBundleDescriptor, 148 String serverName) throws MBeanException; 149 150 void createEJBMBean(EjbDescriptor ejbDescriptor, 151 String serverName) throws MBeanException; 152 153 void deleteEJBMBean(EjbDescriptor ejbDescriptor, 154 String serverName) throws MBeanException; 155 156 157 158 void createWebModuleMBean(String appName, String parentName, 160 String serverName, String deploymentDescriptor) 161 throws MBeanException; 162 163 void deleteWebModuleMBean(String appName, String parentName, 164 String serverName) throws MBeanException; 165 166 void createWebMBeans(WebBundleDescriptor webBundleDescriptor, 167 String serverName) throws MBeanException; 168 169 void deleteWebMBeans(WebBundleDescriptor webBundleDescriptor, 170 String serverName) throws MBeanException; 171 172 void createWebMBean(String servletName, String moduleName, String appName, 173 String serverName) throws MBeanException; 174 175 void deleteWebMBean(String servletName, String moduleName, String appName, 176 String serverName) throws MBeanException; 177 178 void registerWebModuleAndItsComponents(WebBundleDescriptor webBundleDescriptor, 179 String serverName, boolean registerComponents, String appLocation) 180 throws MBeanException; 181 182 184 193 void createWSEndpointMBeans(BundleDescriptor bundleDescriptor, 194 String serverName) throws MBeanException; 195 196 205 void deleteWSEndpointMBeans(BundleDescriptor bundleDescriptor, 206 String serverName) throws MBeanException; 207 208 217 void createWSEndpointMBean(String ctxRoot, WebServiceEndpoint descriptor, 218 String serverName) throws MBeanException; 219 220 229 void deleteWSEndpointMBean(String ctxRoot, WebServiceEndpoint descriptor, 230 String serverName) throws MBeanException; 231 232 233 235 void createRARModuleMBean(ConnectorDescriptor bundleDesc, 236 String serverName, String appLocation) throws MBeanException; 237 238 void deleteRARModuleMBean(ConnectorDescriptor cd, 239 String serverName) throws MBeanException; 240 241 void createRARMBeans(ConnectorDescriptor cd, 242 String serverName) throws MBeanException; 243 244 void deleteRARMBeans(ConnectorDescriptor cd, 245 String serverName) throws MBeanException; 246 247 void createRARMBean(ConnectorDescriptor cd, 248 String serverName) throws MBeanException; 249 250 void deleteRARMBean(ConnectorDescriptor cd, 251 String serverName) throws MBeanException; 252 253 void registerResourceAdapterModuleAndItsComponents(ConnectorDescriptor bundleDesc, 254 String serverName, boolean registerComponents, String appLocation) 255 throws MBeanException; 256 257 258 260 void createAppClientModuleMBean(String appName, String parentName, 261 String serverName, String deploymentDescriptor) throws MBeanException; 262 263 void deleteAppClientModuleMBean(String appName, String parentName, 264 String serverName) throws MBeanException; 265 266 void registerAppClient(ApplicationClientDescriptor bundleDesc, 267 String serverName, String appLocation) throws MBeanException; 268 269 void unregisterAppClient(ApplicationClientDescriptor bundleDesc, 270 String serverName) throws MBeanException; 271 272 274 void setApplicationState(int state, Application application, 275 String serverName) throws MBeanException; 276 277 void setEJBModuleState(int state, EjbBundleDescriptor ejbBundleDescriptor, 278 String serverName) throws MBeanException; 279 280 void setRARModuleState(int state, ConnectorDescriptor connectorDescriptor, 281 String serverName) throws MBeanException; 282 283 Integer getState(String namePattern) throws MBeanException; 284 285 287 String getModuleName(BundleDescriptor bd) throws MBeanException; 288 289 String getApplicationName(BundleDescriptor bd); 290 291 ObjectName findObjectName(String namePattern) throws MBeanException; 292 293 String getJ2eeTypeForEjb(EjbDescriptor ejbDescriptor) throws MBeanException; 294 295 void registerTransactionService(); 296 297 void registerAllJ2EEClusters(); 298 void registerJ2EECluster(String clusterName); 299 void unregisterJ2EECluster(String clusterName); 300 301 } 302 | Popular Tags |