01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.com
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.jmx;
09:
10: import javax.management.ObjectName;
11: import javax.management.ObjectInstance;
12: import javax.management.MBeanInfo;
13: import javax.management.MBeanException;
14: import javax.management.AttributeNotFoundException;
15: import javax.management.ReflectionException;
16: import javax.management.AttributeList;
17: import javax.management.Attribute;
18: import javax.management.InvalidAttributeValueException;
19:
20: /**
21: *
22: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
23: */
24:
25: public interface MBeanMetaData extends MBeanInterfaceMetaData {
26:
27: public ClassLoader getClassLoader();
28:
29: public String getClassName();
30:
31: public ObjectName getObjectName();
32:
33: public void setObjectName(ObjectName name);
34:
35: public ExtendedObjectInstance getObjectInstance();
36:
37: public Object getMBeanObject();
38:
39: public boolean isDynamic();
40:
41: public MBeanInfo getMBeanInfo();
42:
43: public Object getAttribute(String attribute) throws MBeanException,
44: AttributeNotFoundException, ReflectionException;
45:
46: public AttributeList getAttributes(String[] attributes)
47: throws MBeanException, AttributeNotFoundException,
48: ReflectionException;
49:
50: public void setAttribute(Attribute attribute)
51: throws AttributeNotFoundException,
52: InvalidAttributeValueException, MBeanException,
53: ReflectionException;
54:
55: public AttributeList setAttributes(AttributeList attributes)
56: throws AttributeNotFoundException,
57: InvalidAttributeValueException, MBeanException,
58: ReflectionException;
59:
60: public Object invoke(String operationName, Object params[],
61: String[] signatures) throws MBeanException,
62: ReflectionException;
63:
64: public String getInterfaceClassName();
65:
66: // public Object reflectInvoke(String operationName, Object params[], Class[] signatures) throws MBeanException, ReflectionException;
67:
68: }
|