| 1 7 8 package javax.management; 9 10 11 import java.util.Set ; 13 import java.io.ObjectInputStream ; 14 15 import javax.management.loading.ClassLoaderRepository ; 17 18 231 232 239 public interface MBeanServer extends MBeanServerConnection { 240 285 public ObjectInstance createMBean(String className, ObjectName name) 286 throws ReflectionException , InstanceAlreadyExistsException , 287 MBeanRegistrationException , MBeanException , 288 NotCompliantMBeanException ; 289 290 338 public ObjectInstance createMBean(String className, ObjectName name, 339 ObjectName loaderName) 340 throws ReflectionException , InstanceAlreadyExistsException , 341 MBeanRegistrationException , MBeanException , 342 NotCompliantMBeanException , InstanceNotFoundException ; 343 344 345 346 390 public ObjectInstance createMBean(String className, ObjectName name, 391 Object params[], String signature[]) 392 throws ReflectionException , InstanceAlreadyExistsException , 393 MBeanRegistrationException , MBeanException , 394 NotCompliantMBeanException ; 395 396 444 public ObjectInstance createMBean(String className, ObjectName name, 445 ObjectName loaderName, Object params[], 446 String signature[]) 447 throws ReflectionException , InstanceAlreadyExistsException , 448 MBeanRegistrationException , MBeanException , 449 NotCompliantMBeanException , InstanceNotFoundException ; 450 451 480 public ObjectInstance registerMBean(Object object, ObjectName name) 481 throws InstanceAlreadyExistsException , MBeanRegistrationException , 482 NotCompliantMBeanException ; 483 484 504 public void unregisterMBean(ObjectName name) 505 throws InstanceNotFoundException , MBeanRegistrationException ; 506 507 521 public ObjectInstance getObjectInstance(ObjectName name) 522 throws InstanceNotFoundException ; 523 524 547 public Set queryMBeans(ObjectName name, QueryExp query); 548 549 571 public Set queryNames(ObjectName name, QueryExp query); 572 573 586 public boolean isRegistered(ObjectName name); 587 588 595 public Integer getMBeanCount(); 596 597 624 public Object getAttribute(ObjectName name, String attribute) 625 throws MBeanException , AttributeNotFoundException , 626 InstanceNotFoundException , ReflectionException ; 627 628 648 public AttributeList getAttributes(ObjectName name, String [] attributes) 649 throws InstanceNotFoundException , ReflectionException ; 650 651 678 public void setAttribute(ObjectName name, Attribute attribute) 679 throws InstanceNotFoundException , AttributeNotFoundException , 680 InvalidAttributeValueException , MBeanException , 681 ReflectionException ; 682 683 684 685 707 public AttributeList setAttributes(ObjectName name, 708 AttributeList attributes) 709 throws InstanceNotFoundException , ReflectionException ; 710 711 735 public Object invoke(ObjectName name, String operationName, 736 Object params[], String signature[]) 737 throws InstanceNotFoundException , MBeanException , 738 ReflectionException ; 739 740 747 public String getDefaultDomain(); 748 749 761 public String [] getDomains(); 762 763 787 public void addNotificationListener(ObjectName name, 788 NotificationListener listener, 789 NotificationFilter filter, 790 Object handback) 791 throws InstanceNotFoundException ; 792 793 794 828 public void addNotificationListener(ObjectName name, 829 ObjectName listener, 830 NotificationFilter filter, 831 Object handback) 832 throws InstanceNotFoundException ; 833 834 853 public void removeNotificationListener(ObjectName name, 854 ObjectName listener) 855 throws InstanceNotFoundException , ListenerNotFoundException ; 856 857 889 public void removeNotificationListener(ObjectName name, 890 ObjectName listener, 891 NotificationFilter filter, 892 Object handback) 893 throws InstanceNotFoundException , ListenerNotFoundException ; 894 895 896 915 public void removeNotificationListener(ObjectName name, 916 NotificationListener listener) 917 throws InstanceNotFoundException , ListenerNotFoundException ; 918 919 |