KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > mx > server > ServerConstants


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.mx.server;
23
24 /**
25  * Server related constant variables. These are constants that are used internally
26  * by the MBean server implementation or are used to configure the MBean server.
27  * Different JMX service specific constants should be added to the <tt>ServiceConstants</tt>
28  * interface.
29  *
30  * @see org.jboss.mx.service.ServiceConstants
31  * @see org.jboss.mx.server.MBeanServerImpl
32  *
33  * @author <a HREF="mailto:juha@jboss.org">Juha Lindfors</a>.
34  * @author <a HREF="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>.
35  * @version $Revision: 37459 $
36  *
37  */

38 public interface ServerConstants
39 {
40    // Constants -----------------------------------------------------
41

42    /**
43     * The name of the protected implementation domain
44     * Pass this object to the registry in the values map as the key and value
45     * to register in this domain
46     */

47    final static String JavaDoc JMI_DOMAIN = "JMImplementation";
48    
49    /**
50     * String representation of the MBean server delegate MBean object name.
51     */

52    final static String JavaDoc MBEAN_SERVER_DELEGATE = JMI_DOMAIN + ":type=MBeanServerDelegate";
53    
54    /**
55     * String representation of the MBean registry mbean object name.
56     */

57    final static String JavaDoc MBEAN_REGISTRY = JMI_DOMAIN + ":type=MBeanRegistry";
58    
59    /**
60     * String representationof the MBean server configuration mbean object name.
61     */

62    final static String JavaDoc MBEAN_SERVER_CONFIGURATION = JMI_DOMAIN + ":type=MBeanServerConfiguration";
63    
64    /**
65     * The default domain name for the MBean server. If a default domain is not specified
66     * when the server is created, this value (<tt>"DefaultDomain"</tt>) is used.
67     *
68     * @see javax.management.MBeanServerFactory
69     */

70    final static String JavaDoc DEFAULT_DOMAIN = "DefaultDomain";
71
72    
73    // MBean Server Delegate -----------------------------------------
74

75    /**
76     * The specification name of the implementation. This value can be retrieved from the MBean server delegate.
77     */

78    final static String JavaDoc SPECIFICATION_NAME = "Java Management Extensions Instrumentation and Agent Specification";
79    
80    /**
81     * The specification version of the implementation. This value can be retrieved from the MBean server delegate.
82     */

83    final static String JavaDoc SPECIFICATION_VERSION = "1.2 Maintenance Release";
84    
85    /**
86     * The specification vendor name. This value can be retrieved from the MBean server delegate.
87     */

88    final static String JavaDoc SPECIFICATION_VENDOR = "Sun Microsystems, Inc.";
89    
90    /**
91     * The name of the implementation. This value can be retrieved from the MBean server delegate.
92     */

93    final static String JavaDoc IMPLEMENTATION_NAME = "JBossMX";
94    
95    /**
96     * The version of the implementation. This value can be retrieved from the MBean server delegate.
97     */

98    final static String JavaDoc IMPLEMENTATION_VERSION = "4.0.0";
99    
100    /**
101     * The vendor of the implementation. This value can be retrieved from the MBean server delegate.
102     */

103    final static String JavaDoc IMPLEMENTATION_VENDOR = "JBoss Organization";
104    
105    
106    // System properties ---------------------------------------------
107

108     /**
109     * This property can be used to configure which Model MBean implementation is
110     * used for the MBean agent's required Model MBean
111     * (see {@link javax.management.modelmbean.RequiredModelMBean}). The required
112     * Model MBean implementation will delegate all calls to the class specified
113     * with this property, e.g
114     * <tt>-Djbossmx.required.modelmbean.class=org.jboss.mx.modelmbean.XMBean</tt>
115     * would instantiate and delegate all calls made to <tt>RequiredModelMBean</tt>
116     * instance to JBossMX XMBean implementation.
117     */

118    final static String JavaDoc REQUIRED_MODELMBEAN_CLASS_PROPERTY = "jbossmx.required.modelmbean.class";
119    
120    /**
121     * This constant defines the default Model MBean implementation used for spec
122     * required Model MBean (<tt>javax.management.modelmbean.RequiredModelMBean</tt>)
123     * instance. Defaults to {@link org.jboss.mx.modelmbean.XMBean} implementation.
124     */

125    final static String JavaDoc DEFAULT_REQUIRED_MODELMBEAN_CLASS = "org.jboss.mx.modelmbean.XMBean";
126    
127    /**
128     * This property can be used to configure the default class loader repository
129     * implementation for the JVM.
130     */

131    final static String JavaDoc LOADER_REPOSITORY_CLASS_PROPERTY = "jbossmx.loader.repository.class";
132    
133    final static String JavaDoc DEFAULT_LOADER_REPOSITORY_CLASS = "org.jboss.mx.loading.UnifiedLoaderRepository3";
134    final static String JavaDoc UNIFIED_LOADER_REPOSITORY_CLASS = "org.jboss.mx.loading.UnifiedLoaderRepository3";
135    final static String JavaDoc DEFAULT_SCOPED_REPOSITORY_CLASS = "org.jboss.mx.loading.HeirarchicalLoaderRepository3";
136    final static String JavaDoc DEFAULT_SCOPED_REPOSITORY_PARSER_CLASS = "org.jboss.mx.loading.HeirarchicalLoaderRepository3ConfigParser";
137
138    final static String JavaDoc MBEAN_REGISTRY_CLASS_PROPERTY = "jbossmx.mbean.registry.class";
139    final static String JavaDoc DEFAULT_MBEAN_REGISTRY_CLASS = "org.jboss.mx.server.registry.BasicMBeanRegistry";
140    
141    final static String JavaDoc MBEAN_SERVER_BUILDER_CLASS_PROPERTY = "javax.management.builder.initial";
142    final static String JavaDoc DEFAULT_MBEAN_SERVER_BUILDER_CLASS = "org.jboss.mx.server.MBeanServerBuilderImpl";
143    
144    final static String JavaDoc OPTIMIZE_REFLECTED_DISPATCHER = "jbossmx.optimized.dispatcher";
145
146    //added for UnifiedLoaderRepository becoming an mbean that issues notifications
147
final static String JavaDoc DEFAULT_LOADER_NAME = JMI_DOMAIN + ":service=LoaderRepository,name=Default";
148
149    final static String JavaDoc CLASSLOADER_ADDED = "jboss.mx.classloader.added";
150    final static String JavaDoc CLASSLOADER_REMOVED = "jboss.mx.classloader.removed";
151    final static String JavaDoc CLASS_REMOVED = "jboss.mx.class.removed";
152
153    /**
154     * The key for the context classloader for an MBean registration
155     */

156    final static String JavaDoc CLASSLOADER = "org.jboss.mx.classloader";
157
158 }
159
Popular Tags