01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management.modelmbean;
09:
10: /**
11: * Define the Prefinded Descriptor field
12: *
13: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
14: */
15:
16: class DescriptorConstants {
17: public final static String NAME = "name";
18: public final static String DESCRIPTORTYPE = "descriptorType";
19: public final static String DISPLAYNAME = "displayName";
20: public final static String PERSISTPOLICY = "persistPolicy";
21: public final static String PERSISTPOLICY_NEVER = "Never";
22: public final static String PERSISTPOLICY_ONTIMER = "OnTimer";
23: public final static String PERSISTPOLICY_ONUPDATE = "OnUpdate";
24: public final static String PERSISTPOLICY_NOMOREOFTENTHAN = "NoMoreOftenThan";
25: public final static String PERSISTPERIOD = "persistPeriod";
26: public final static String PERSISTLOCATION = "persistLocation";
27: public final static String PERSISTNAME = "persistName";
28: public final static String LOG = "log";
29: public final static String LOGFILE = "logFile";
30: public final static String CURRENCYTIMELIMIT = "currencyTimeLimit";
31: public final static int CURRENCYTIMELIMIT_NEVERSTALE = -1;
32: public final static int CURRENCYTIMELIMIT_ALWARYSSTALE = 0;
33: public final static int CURRENCYTIMELIMIT_CONDITIONSTALE = 1;
34: public final static String EXPORT = "export";
35: public final static String VISIBILITY = "visibility";
36: public final static int VISIBILITY_LARGEST = 1;
37: public final static int VISIBILITY_LARGE = 2;
38: public final static int VISIBILITY_NORMAL = 3;
39: public final static int VISIBILITY_SMALL = 4;
40: public final static String PRESENTATIONSTRING = "presentationString";
41:
42: public final static String TRUE = "T";
43: public final static String FALSE = "F";
44:
45: // special field for attribute descriptor
46: public final static String ATTRIBUTE_VALUE = "value";
47: public final static String ATTRIBUTE_DEFAULT = "default";
48: public final static String ATTRIBUTE_GETMETHOD = "getMethod";
49: public final static String ATTRIBUTE_SETMETHOD = "setMethod";
50: public final static String ATTRIBUTE_PROTOCOLMAP = "protocolMap";
51: public final static String ATTRIBUTE_LASTUPDATEDTIMESTAMP = "lastUpdatedTimeStamp";
52: public final static String ATTRIBUTE_ITERABLE = "iterable";
53:
54: // specail field for operation descriptor
55: public final static String OPERATION_CLASS = "class";
56: public final static String OPERATION_ROLE = "role";
57: public final static String OPERATION_ROLE_OPERATION = "operation";
58: public final static String OPERATION_ROLE_CONSTRUCTOR = "constructor";
59: public final static String OPERATION_TARGETOBJECT = "targetObject";
60: public final static String OPERATION_TARGETTYPE = "targetType";
61: public final static String OPERATION_TARGETTYPE_OBJECTREFERENCE = "ObjectReference";
62: public final static String OPERATION_TARGETTYPE_HANDLE = "Handle";
63: public final static String OPERATION_TARGETTYPE_EJBHANDLE = "EJBHandle";
64: public final static String OPERATION_TARGETTYPE_IOR = "IOR";
65: public final static String OPERATION_TARGETTYPE_RMIREFERENCE = "RMIReference";
66: public final static String OPERATION_VALUE = "value";
67: public final static String OPERATION_LASTRETURNEDTIMESTAMP = "lastReturnedTimeStamp";
68:
69: // special field for notification descriptor
70: public final static String NOTIFICATION_SEVERITY = "severity";
71: // public final static int NOTIFICATION_SEVERITY_UNKNOWN = 0;
72: public final static int NOTIFICATION_SEVERITY_FATAL = 1;
73: public final static int NOTIFICATION_SEVERITY_SEVERE = 2;
74: public final static int NOTIFICATION_SEVERITY_ERROR = 3;
75: public final static int NOTIFICATION_SEVERITY_WARN = 4;
76: public final static int NOTIFICATION_SEVERITY_INFO = 5;
77: public final static String NOTIFICATION_MESSAGEID = "messageID";
78: public final static String NOTIFICATION_MESSAGETEXT = "messageText";
79:
80: // Descriptor types
81: public static final String MBEAN_TYPE = "mbean";
82: public static final String ATTRIBUTE_TYPE = "attribute";
83: public static final String OPERATION_TYPE = "operation";
84: // consturctor is a operation with role = constructor
85: public static final String CONSTRUCTOR_TYPE = "constructor";
86: public static final String NOTIFICATION_TYPE = "notification";
87:
88: }
|