KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > base > SystemInfo


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23  
24 /*
25  * $Header: /cvs/glassfish/admin-core/mbeanapi/src/java/com/sun/appserv/management/base/SystemInfo.java,v 1.3 2005/12/25 03:49:01 tcfujii Exp $
26  * $Revision: 1.3 $
27  * $Date: 2005/12/25 03:49:01 $
28  */

29
30 package com.sun.appserv.management.base;
31
32
33 /**
34     Provides information about the capabilities of the running server.
35     Callers should check only for specific capabilities, never whether
36     the server is PE/SE/EE, since the feature assortment could vary with
37     release.
38  */

39 public interface SystemInfo extends AMX
40 {
41 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
42     public static final String JavaDoc J2EE_TYPE = XTypes.SYSTEM_INFO;
43     
44     /**
45         Call supportsFeature() with this value to determine if the server
46         supports clusters.
47      */

48     public final String JavaDoc CLUSTERS_FEATURE = "SupportsClusters";
49     
50     /**
51         Call supportsFeature() with this value to determine if the server
52         supports more than one server.
53      */

54     public final String JavaDoc MULTIPLE_SERVERS_FEATURE = "SupportsMultipleServers";
55     
56     
57     /**
58         Call supportsFeature() with this value to determine if this MBean
59         is running in the Domain Admin Server.
60      */

61     public final String JavaDoc RUNNING_IN_DAS_FEATURE = "RunningInDomainAdminServer";
62     
63     
64     
65     /**
66         Query whether a feature is supported. Features require the use
67         of a key, which may be any of:
68         <ul>
69         <li>CLUSTERS_FEATURE</li>
70         <li>MULTIPLE_SERVERS_FEATURE</li>
71         <li>RUNNING_IN_DAS_FEATURE</li>
72         </ul>
73         
74         @param key the feature to query
75      */

76     public boolean supportsFeature( String JavaDoc key );
77     
78     /**
79         Return all features names.
80         
81         @return Set
82      */

83     public String JavaDoc[] getFeatureNames();
84     
85
86
87
88 }
89
Popular Tags