1 7 8 package com.sun.jmx.interceptor; 9 10 import java.util.Set ; 11 12 import javax.management.DynamicMBean ; 14 import javax.management.AttributeNotFoundException ; 15 import javax.management.MBeanException ; 16 import javax.management.ReflectionException ; 17 import javax.management.MBeanAttributeInfo ; 18 import javax.management.MBeanInfo ; 19 import javax.management.QueryExp ; 20 import javax.management.NotificationListener ; 21 import javax.management.NotificationFilter ; 22 import javax.management.ListenerNotFoundException ; 23 import javax.management.IntrospectionException ; 24 import javax.management.OperationsException ; 25 import javax.management.MBeanNotificationInfo ; 26 import javax.management.JMRuntimeException ; 27 import javax.management.InstanceNotFoundException ; 28 import javax.management.NotCompliantMBeanException ; 29 import javax.management.MBeanRegistrationException ; 30 import javax.management.InstanceAlreadyExistsException ; 31 import javax.management.InvalidAttributeValueException ; 32 import javax.management.ObjectName ; 33 import javax.management.ObjectInstance ; 34 import javax.management.Attribute ; 35 import javax.management.AttributeList ; 36 import javax.management.RuntimeOperationsException ; 37 import javax.management.MBeanServerConnection ; 38 import javax.management.MBeanServerDelegate ; 39 import javax.management.loading.ClassLoaderRepository ; 40 41 70 public interface MBeanServerInterceptor extends MBeanServerConnection { 71 111 public ObjectInstance createMBean(String className, ObjectName name, 112 Object params[], String signature[]) 113 throws ReflectionException , InstanceAlreadyExistsException , 114 MBeanRegistrationException , MBeanException , 115 NotCompliantMBeanException ; 116 117 161 public ObjectInstance createMBean(String className, ObjectName name, 162 ObjectName loaderName, Object params[], 163 String signature[]) 164 throws ReflectionException , InstanceAlreadyExistsException , 165 MBeanRegistrationException , MBeanException , 166 NotCompliantMBeanException , InstanceNotFoundException ; 167 168 194 public ObjectInstance registerMBean(Object object, ObjectName name) 195 throws InstanceAlreadyExistsException , MBeanRegistrationException , 196 NotCompliantMBeanException ; 197 198 218 public void unregisterMBean(ObjectName name) 219 throws InstanceNotFoundException , MBeanRegistrationException ; 220 221 233 public ObjectInstance getObjectInstance(ObjectName name) 234 throws InstanceNotFoundException ; 235 236 259 public Set queryMBeans(ObjectName name, QueryExp query); 260 261 283 public Set queryNames(ObjectName name, QueryExp query); 284 285 298 public boolean isRegistered(ObjectName name); 299 300 303 public Integer getMBeanCount(); 304 305 330 public Object getAttribute(ObjectName name, String attribute) 331 throws MBeanException , AttributeNotFoundException , 332 InstanceNotFoundException , ReflectionException ; 333 334 352 public AttributeList getAttributes(ObjectName name, String [] attributes) 353 throws InstanceNotFoundException , ReflectionException ; 354 355 382 public void setAttribute(ObjectName name, Attribute attribute) 383 throws InstanceNotFoundException , AttributeNotFoundException , 384 InvalidAttributeValueException , MBeanException , 385 ReflectionException ; 386 387 388 389 409 public AttributeList setAttributes(ObjectName name, 410 AttributeList attributes) 411 throws InstanceNotFoundException , ReflectionException ; 412 413 437 public Object invoke(ObjectName name, String operationName, 438 Object params[], String signature[]) 439 throws InstanceNotFoundException , MBeanException , 440 ReflectionException ; 441 442 447 public String getDefaultDomain(); 448 449 453 public String [] getDomains(); 454 455 475 public void addNotificationListener(ObjectName name, 476 NotificationListener listener, 477 NotificationFilter filter, 478 Object handback) 479 throws InstanceNotFoundException ; 480 481 482 515 public void addNotificationListener(ObjectName name, 516 ObjectName listener, 517 NotificationFilter filter, 518 Object handback) 519 throws InstanceNotFoundException ; 520 521 537 public void removeNotificationListener(ObjectName name, 538 ObjectName listener) 539 throws InstanceNotFoundException , ListenerNotFoundException ; 540 541 568 public void removeNotificationListener(ObjectName name, 569 ObjectName listener, 570 NotificationFilter filter, 571 Object handback) 572 throws InstanceNotFoundException , ListenerNotFoundException ; 573 574 575 592 public void removeNotificationListener(ObjectName name, 593 NotificationListener listener) 594 throws InstanceNotFoundException , ListenerNotFoundException ; 595 596 623 public void removeNotificationListener(ObjectName name, 624 NotificationListener listener, 625 NotificationFilter filter, 626 Object handback) 627 throws InstanceNotFoundException , ListenerNotFoundException ; 628 629 645 public MBeanInfo getMBeanInfo(ObjectName name) 646 throws InstanceNotFoundException , IntrospectionException , 647 ReflectionException ; 648 649 650 663 public boolean isInstanceOf(ObjectName name, String className) 664 throws InstanceNotFoundException ; 665 666 673 public ClassLoader getClassLoaderFor(ObjectName mbeanName) 674 throws InstanceNotFoundException ; 675 676 683 public ClassLoader getClassLoader(ObjectName loaderName) 684 throws InstanceNotFoundException ; 685 686 } 687 | Popular Tags |