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.MBeanServerNotification;
11: import javax.management.ObjectName;
12:
13: /**
14: *
15: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
16: */
17:
18: public class ExtendedMBeanServerNotification extends
19: MBeanServerNotification {
20: public static final String DESERIALIZE_NOTIFICATION = "jmx.mbean.deserialize";
21: public static final String GET_ATTRIBUTE_NOTIFICATION = "jmx.mbean.getattribute";
22: public static final String GET_ATTRIBUTES_NOTIFICATION = "jmx.mbean.getattributes";
23: public static final String SET_ATTRIBUTE_NOTIFICATION = "jmx.mbean.setattribute";
24: public static final String SET_ATTRIBUTES_NOTIFICATION = "jmx.mbean.setattributes";
25: public static final String GET_MBEANINFO_NOTIFICATION = "jmx.mbean.getmbeaninfo";
26: public static final String GET_OBJECTINSTANCE_NOTIFICATION = "jmx.mbean.getobjectinstance";
27: public static final String INVOKE_NOTIFICATION = "jmx.mbean.invoke";
28: public static final String ISINSTANCEOF_NOTIFICATION = "jmx.mbean.isinstanceof";
29: public static final String ISREGISTERED_NOTIFICATION = "jmx.mbean.isregistered";
30: public static final String QUERYMBEANS_NOTIFICATION = "jmx.mbean.querymbeans";
31: public static final String ADD_NOTIFICATIONLISTENER_NOTIFICATION = "jmx.mbean.addnotificationlistener";
32: public static final String REMOVE_NOTIFICATIONLISTENER_NOTIFICATION = "jmx.mbean.removenotificationlistener";
33: public static final String GET_CLASSLOADER_NOTIFICATION = "jmx.mbean.getclassloader";
34: public static final String GET_CLASSLOADERFOR_NOTIFICATION = "jmx.mbean.getclassloaderfor";
35: public static final String GET_CLASSLOADERREPOSITORY_NOTIFICATION = "jmx.mbean.getclassloaderrepository";
36:
37: public static final String REGISTER_MBEAN = "registerMBean";
38: public static final String UNREGISTER_MBEAN = "unregisterMBean";
39: public static final String DESERIALIZE = "deserialize";
40: public static final String GET_ATTRIBUTE = "getAttribute";
41: public static final String GET_ATTRIBUTES = "getAttributes";
42: public static final String GET_MBEANINFO = "getMBeanInfo";
43: public static final String GET_OBJECTINSTANCE = "getObjectInstance";
44: public static final String INVOKE = "invoke";
45: public static final String IS_INSTANCEOF = "isInstanceOf";
46: public static final String ISREGISTERED = "isRegistered";
47: public static final String QUERY_MBEANS = "queryMBeans";
48: public static final String QUERY_NAME = "queryNames";
49: public static final String SET_ATTRIBUTE = "setAttribute";
50: public static final String SET_ATTRIBUTES = "etAttributes";
51: public static final String ADD_NOTIFICATION_LISTENER = "addNotificationListener";
52: public static final String REMOVE_NOTIFICATION_LISTENER = "removeNotificationListener";
53: public static final String GET_CLASSLOADER = "getClassLoader";
54: public static final String GET_CLASSLOADER_FOR = "getClassLoaderFor";
55: public static final String GET_CLASSLOADER_REPOSITORY = "getClassLoaderRepository";
56:
57: private String operationName = null;
58: private Object[] params = null;
59:
60: public ExtendedMBeanServerNotification(String type, Object source,
61: long sequenceNumber, ObjectName objectName) {
62: super (type, source, sequenceNumber, objectName);
63: }
64:
65: public ExtendedMBeanServerNotification(String type, Object source,
66: long sequenceNumber, ObjectName objectName,
67: String operationName, Object[] params) {
68: super (type, source, sequenceNumber, objectName);
69: this .operationName = operationName;
70: this .params = params;
71: }
72:
73: public String getOperationName() {
74: return operationName;
75: }
76:
77: public Object[] getParams() {
78: return params;
79: }
80:
81: }
|