1 7 8 package javax.management.remote.rmi; 9 10 import java.io.IOException ; 12 import java.io.Serializable ; 13 import java.io.InterruptedIOException ; 14 15 import java.rmi.Remote ; 17 import java.rmi.MarshalledObject ; 18 19 import javax.management.AttributeList ; 21 import javax.management.AttributeNotFoundException ; 22 import javax.management.InstanceAlreadyExistsException ; 23 import javax.management.InstanceNotFoundException ; 24 import javax.management.IntrospectionException ; 25 import javax.management.InvalidAttributeValueException ; 26 import javax.management.ListenerNotFoundException ; 27 import javax.management.MalformedObjectNameException ; 28 import javax.management.MBeanException ; 29 import javax.management.MBeanInfo ; 30 import javax.management.MBeanRegistrationException ; 31 import javax.management.MBeanServer ; 32 import javax.management.MBeanServerConnection ; 33 import javax.management.NotificationListener ; 34 import javax.management.NotCompliantMBeanException ; 35 import javax.management.ObjectInstance ; 36 import javax.management.ObjectName ; 37 import javax.management.ReflectionException ; 38 import javax.management.RuntimeOperationsException ; 39 import javax.management.loading.ClassLoaderRepository ; 40 41 import javax.management.remote.NotificationResult ; 42 43 import java.util.Set ; 45 46 import javax.security.auth.Subject ; 47 48 80 public interface RMIConnection extends Remote { 81 91 public String getConnectionId() throws IOException ; 92 93 103 public void close() throws IOException ; 104 105 145 public ObjectInstance createMBean(String className, 146 ObjectName name, 147 Subject delegationSubject) 148 throws 149 ReflectionException , 150 InstanceAlreadyExistsException , 151 MBeanRegistrationException , 152 MBeanException , 153 NotCompliantMBeanException , 154 IOException ; 155 156 199 public ObjectInstance createMBean(String className, 200 ObjectName name, 201 ObjectName loaderName, 202 Subject delegationSubject) 203 throws 204 ReflectionException , 205 InstanceAlreadyExistsException , 206 MBeanRegistrationException , 207 MBeanException , 208 NotCompliantMBeanException , 209 InstanceNotFoundException , 210 IOException ; 211 212 260 public ObjectInstance createMBean(String className, 261 ObjectName name, 262 MarshalledObject params, 263 String signature[], 264 Subject delegationSubject) 265 throws 266 ReflectionException , 267 InstanceAlreadyExistsException , 268 MBeanRegistrationException , 269 MBeanException , 270 NotCompliantMBeanException , 271 IOException ; 272 273 325 public ObjectInstance createMBean(String className, 326 ObjectName name, 327 ObjectName loaderName, 328 MarshalledObject params, 329 String signature[], 330 Subject delegationSubject) 331 throws 332 ReflectionException , 333 InstanceAlreadyExistsException , 334 MBeanRegistrationException , 335 MBeanException , 336 NotCompliantMBeanException , 337 InstanceNotFoundException , 338 IOException ; 339 340 363 public void unregisterMBean(ObjectName name, Subject delegationSubject) 364 throws 365 InstanceNotFoundException , 366 MBeanRegistrationException , 367 IOException ; 368 369 392 public ObjectInstance getObjectInstance(ObjectName name, 393 Subject delegationSubject) 394 throws InstanceNotFoundException , IOException ; 395 396 421 public Set <ObjectInstance > 422 queryMBeans(ObjectName name, 423 MarshalledObject query, 424 Subject delegationSubject) 425 throws IOException ; 426 427 452 public Set <ObjectName > 453 queryNames(ObjectName name, 454 MarshalledObject query, 455 Subject delegationSubject) 456 throws IOException ; 457 458 477 public boolean isRegistered(ObjectName name, Subject delegationSubject) 478 throws IOException ; 479 480 494 public Integer getMBeanCount(Subject delegationSubject) 495 throws IOException ; 496 497 533 public Object getAttribute(ObjectName name, 534 String attribute, 535 Subject delegationSubject) 536 throws 537 MBeanException , 538 AttributeNotFoundException , 539 InstanceNotFoundException , 540 ReflectionException , 541 IOException ; 542 543 570 public AttributeList getAttributes(ObjectName name, 571 String [] attributes, 572 Subject delegationSubject) 573 throws 574 InstanceNotFoundException , 575 ReflectionException , 576 IOException ; 577 578 614 public void setAttribute(ObjectName name, 615 MarshalledObject attribute, 616 Subject delegationSubject) 617 throws 618 InstanceNotFoundException , 619 AttributeNotFoundException , 620 InvalidAttributeValueException , 621 MBeanException , 622 ReflectionException , 623 IOException ; 624 625 656 public AttributeList setAttributes(ObjectName name, 657 MarshalledObject attributes, 658 Subject delegationSubject) 659 throws 660 InstanceNotFoundException , 661 ReflectionException , 662 IOException ; 663 664 703 public Object invoke(ObjectName name, 704 String operationName, 705 MarshalledObject params, 706 String signature[], 707 Subject delegationSubject) 708 throws 709 InstanceNotFoundException , 710 MBeanException , 711 ReflectionException , 712 IOException ; 713 714 728 public String getDefaultDomain(Subject delegationSubject) 729 throws IOException ; 730 731 745 public String [] getDomains(Subject delegationSubject) 746 throws IOException ; 747 748 773 public MBeanInfo getMBeanInfo(ObjectName name, Subject delegationSubject) 774 throws 775 InstanceNotFoundException , 776 IntrospectionException , 777 ReflectionException , 778 IOException ; 779 780 803 public boolean isInstanceOf(ObjectName name, 804 String className, 805 Subject delegationSubject) 806 throws InstanceNotFoundException , IOException ; 807 808 848 public void addNotificationListener(ObjectName name, 849 ObjectName listener, 850 MarshalledObject filter, 851 MarshalledObject handback, 852 Subject delegationSubject) 853 throws InstanceNotFoundException , IOException ; 854 855 880 public void removeNotificationListener(ObjectName name, 881 ObjectName listener, 882 Subject delegationSubject) 883 throws 884 InstanceNotFoundException , 885 ListenerNotFoundException , 886 IOException ; 887 888 922 public void removeNotificationListener(ObjectName name, 923 ObjectName listener, 924 MarshalledObject filter, 925 MarshalledObject handback, 926 Subject delegationSubject) 927 throws 928 InstanceNotFoundException , 929 ListenerNotFoundException , 930 IOException ; 931 932 934 986 public Integer [] addNotificationListeners(ObjectName [] names, 987 MarshalledObject [] filters, 988 Subject [] delegationSubjects) 989 throws InstanceNotFoundException , IOException ; 990 991 1028 public void removeNotificationListeners(ObjectName name, 1029 Integer [] listenerIDs, 1030 Subject delegationSubject) 1031 throws 1032 InstanceNotFoundException , 1033 ListenerNotFoundException , 1034 IOException ; 1035 1036 1074 public NotificationResult fetchNotifications(long clientSequenceNumber, 1075 int maxNotifications, 1076 long timeout) 1077 throws IOException ; 1078} 1079 | Popular Tags |