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 951 public void removeNotificationListener(ObjectName name, 952 NotificationListener listener, 953 NotificationFilter filter, 954 Object handback) 955 throws InstanceNotFoundException , ListenerNotFoundException ; 956 957 973 public MBeanInfo getMBeanInfo(ObjectName name) 974 throws InstanceNotFoundException , IntrospectionException , 975 ReflectionException ; 976 977 978 1009 public boolean isInstanceOf(ObjectName name, String className) 1010 throws InstanceNotFoundException ; 1011 1012 1039 public Object instantiate(String className) 1040 throws ReflectionException , MBeanException ; 1041 1042 1043 1073 public Object instantiate(String className, ObjectName loaderName) 1074 throws ReflectionException , MBeanException , 1075 InstanceNotFoundException ; 1076 1077 1104 public Object instantiate(String className, Object params[], 1105 String signature[]) 1106 throws ReflectionException , MBeanException ; 1107 1108 1135 public Object instantiate(String className, ObjectName loaderName, 1136 Object params[], String signature[]) 1137 throws ReflectionException , MBeanException , 1138 InstanceNotFoundException ; 1139 1140 1158 @Deprecated 1159 public ObjectInputStream deserialize(ObjectName name, byte[] data) 1160 throws InstanceNotFoundException , OperationsException ; 1161 1162 1163 1185 @Deprecated 1186 public ObjectInputStream deserialize(String className, byte[] data) 1187 throws OperationsException , ReflectionException ; 1188 1189 1190 1216 @Deprecated 1217 public ObjectInputStream deserialize(String className, 1218 ObjectName loaderName, 1219 byte[] data) 1220 throws InstanceNotFoundException , OperationsException , 1221 ReflectionException ; 1222 1223 1248 public ClassLoader getClassLoaderFor(ObjectName mbeanName) 1249 throws InstanceNotFoundException ; 1250 1251 1278 public ClassLoader getClassLoader(ObjectName loaderName) 1279 throws InstanceNotFoundException ; 1280 1281 1287 public ClassLoaderRepository getClassLoaderRepository(); 1288} 1289 | Popular Tags |