01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management.modelmbean;
10:
11: import javax.management.Descriptor;
12: import javax.management.MBeanAttributeInfo;
13: import javax.management.MBeanConstructorInfo;
14: import javax.management.MBeanException;
15: import javax.management.MBeanNotificationInfo;
16: import javax.management.MBeanOperationInfo;
17: import javax.management.RuntimeOperationsException;
18:
19: /**
20: * @version $Revision: 1.6 $
21: */
22: public interface ModelMBeanInfo {
23: public Descriptor[] getDescriptors(String descriptorType)
24: throws MBeanException, RuntimeOperationsException;
25:
26: public void setDescriptors(Descriptor[] descriptors)
27: throws MBeanException, RuntimeOperationsException;
28:
29: public Descriptor getDescriptor(String descriptorName,
30: String descriptorType) throws MBeanException,
31: RuntimeOperationsException;
32:
33: public void setDescriptor(Descriptor descriptor,
34: String descriptorType) throws MBeanException,
35: RuntimeOperationsException;
36:
37: public Descriptor getMBeanDescriptor() throws MBeanException,
38: RuntimeOperationsException;
39:
40: public void setMBeanDescriptor(Descriptor descriptor)
41: throws MBeanException, RuntimeOperationsException;
42:
43: public ModelMBeanAttributeInfo getAttribute(String name)
44: throws MBeanException, RuntimeOperationsException;
45:
46: public ModelMBeanOperationInfo getOperation(String name)
47: throws MBeanException, RuntimeOperationsException;
48:
49: // The following method should be there for symmetry at least, but it's not present in the specification
50: // public ModelMBeanConstructorInfo getConstructor(String name) throws MBeanException, RuntimeOperationsException;
51:
52: public ModelMBeanNotificationInfo getNotification(String name)
53: throws MBeanException, RuntimeOperationsException;
54:
55: public Object clone();
56:
57: public String getClassName();
58:
59: public String getDescription();
60:
61: public MBeanConstructorInfo[] getConstructors();
62:
63: public MBeanAttributeInfo[] getAttributes();
64:
65: public MBeanOperationInfo[] getOperations();
66:
67: public MBeanNotificationInfo[] getNotifications();
68: }
|