1 23 24 package com.sun.enterprise.management.agent; 25 26 import java.security.*; 27 import java.rmi.RemoteException ; 28 import java.util.*; 29 import java.io.ObjectInputStream ; 30 import javax.ejb.*; 31 import javax.management.*; 32 import javax.management.j2ee.*; 33 import javax.rmi.PortableRemoteObject ; 34 35 40 public class IIOPMBeanServerImpl extends PortableRemoteObject implements IIOPMBeanServer { 41 42 private MBeanServer server; 43 44 public IIOPMBeanServerImpl(MBeanServer mbs) throws java.rmi.RemoteException { 45 server = mbs; 46 } 47 48 50 65 public Set queryNames(ObjectName name, QueryExp query) throws RemoteException { 66 return server.queryNames(name, query); 67 } 68 69 76 public boolean isRegistered(ObjectName name) throws RemoteException { 77 return server.isRegistered(name); 78 } 79 80 81 public Integer getMBeanCount() throws RemoteException { 82 return server.getMBeanCount(); 83 } 84 85 93 public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, 94 IntrospectionException, ReflectionException, RemoteException { 95 return server.getMBeanInfo(name); 96 } 97 98 110 public Object getAttribute(ObjectName name, String attribute) throws MBeanException, 111 AttributeNotFoundException, InstanceNotFoundException, 112 ReflectionException, RemoteException { 113 return server.getAttribute(name, attribute); 114 } 115 116 126 public AttributeList getAttributes(ObjectName name, String [] attributes) 127 throws InstanceNotFoundException, ReflectionException, RemoteException { 128 return server.getAttributes(name, attributes); 129 } 130 131 144 public void setAttribute(ObjectName name, Attribute attribute) 145 throws InstanceNotFoundException, AttributeNotFoundException, 146 InvalidAttributeValueException, MBeanException, 147 ReflectionException, RemoteException { 148 server.setAttribute(name, attribute); 149 } 150 151 162 public AttributeList setAttributes(ObjectName name, AttributeList attributes) 163 throws InstanceNotFoundException, ReflectionException, RemoteException { 164 return server.setAttributes(name, attributes); 165 } 166 167 180 public Object invoke(ObjectName name, String operationName, Object [] params, String [] signature) 181 throws InstanceNotFoundException, MBeanException, 182 ReflectionException, RemoteException { 183 return server.invoke(name, operationName, params, signature); 184 } 185 186 191 public String getDefaultDomain() throws RemoteException { 192 return server.getDefaultDomain(); 193 } 194 195 198 199 207 208 210 223 public Object instantiate(String className) throws ReflectionException, MBeanException, RemoteException { 224 return server.instantiate(className); 225 } 226 227 242 public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, 243 MBeanException, InstanceNotFoundException, RemoteException { 244 return server.instantiate(className, loaderName); 245 } 246 247 262 public Object instantiate(String className, Object [] params, String [] signature) throws ReflectionException, 263 MBeanException, RemoteException { 264 return server.instantiate(className, params, signature); 265 } 266 267 284 public Object instantiate(String className, ObjectName loaderName, Object [] params, String [] signature) 285 throws ReflectionException, MBeanException, 286 InstanceNotFoundException, RemoteException { 287 return server.instantiate(className, loaderName, params, signature); 288 } 289 290 311 public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, 312 InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, 313 NotCompliantMBeanException, RemoteException { 314 return server.createMBean(className, name); 315 } 316 317 340 public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) 341 throws ReflectionException, InstanceAlreadyExistsException, 342 MBeanRegistrationException, MBeanException, NotCompliantMBeanException, 343 InstanceNotFoundException, RemoteException { 344 return server.createMBean(className, name, loaderName); 345 } 346 347 369 public ObjectInstance createMBean(String className, ObjectName name, Object [] params, String [] signature) 370 throws ReflectionException, InstanceAlreadyExistsException, 371 MBeanRegistrationException, MBeanException, NotCompliantMBeanException, RemoteException { 372 return server.createMBean(className, name, params, signature); 373 } 374 375 400 public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object [] params, String [] signature) 401 throws ReflectionException, InstanceAlreadyExistsException, 402 MBeanRegistrationException, MBeanException, NotCompliantMBeanException, 403 InstanceNotFoundException, RemoteException { 404 return server.createMBean(className, name, loaderName, params, signature); 405 } 406 407 422 public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, 423 MBeanRegistrationException, NotCompliantMBeanException, RemoteException { 424 return server.registerMBean(object, name); 425 } 426 427 438 public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, 439 MBeanRegistrationException, RemoteException { 440 server.unregisterMBean(name); 441 } 442 443 449 public ObjectInstance getObjectInstance(ObjectName name) 450 throws InstanceNotFoundException, RemoteException { 451 return server.getObjectInstance(name); 452 } 453 454 469 public Set queryMBeans(ObjectName name, QueryExp query) throws RemoteException { 470 return server.queryMBeans(name, query); 471 } 472 473 477 479 487 public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) 488 throws InstanceNotFoundException, RemoteException { 489 495 } 496 497 506 public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) 507 throws InstanceNotFoundException, RemoteException { 508 server.addNotificationListener(name, listener, filter, handback); 509 } 510 511 519 public void removeNotificationListener(ObjectName name, NotificationListener listener) 520 throws InstanceNotFoundException, ListenerNotFoundException, RemoteException { 521 server.removeNotificationListener(name, listener); 522 } 523 524 532 public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, 533 ListenerNotFoundException, RemoteException { 534 server.removeNotificationListener(name, listener); 535 } 536 537 544 public boolean isInstanceOf(ObjectName name, String className) 545 throws InstanceNotFoundException, RemoteException { 546 return server.isInstanceOf(name, className); 547 } 548 549 557 public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException, 558 OperationsException, RemoteException { 559 return server.deserialize(name, data); 560 } 561 562 571 public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, 572 ReflectionException, RemoteException { 573 return server.deserialize(className, data); 574 } 575 576 590 public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) 591 throws InstanceNotFoundException, OperationsException, 592 ReflectionException, RemoteException { 593 return server.deserialize(className, loaderName, data); 594 } 595 } 596 | Popular Tags |