KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > ModuleMonitoringLevelsConfig


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/config/ModuleMonitoringLevelsConfig.java,v 1.4 2006/03/09 20:30:24 llc Exp $
26  * $Revision: 1.4 $
27  * $Date: 2006/03/09 20:30:24 $
28  */

29
30
31 package com.sun.appserv.management.config;
32
33 import java.util.Map JavaDoc;
34
35 import com.sun.appserv.management.base.XTypes;
36
37
38
39 /**
40     Configuration for the <module-monitoring-levels> element.
41     
42     Each monitoring level can be one of the values defined in
43     {@link ModuleMonitoringLevelValues}.
44  */

45 public interface ModuleMonitoringLevelsConfig extends ConfigElement, PropertiesAccess
46 {
47 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
48     public static final String JavaDoc J2EE_TYPE = XTypes.MODULE_MONITORING_LEVELS_CONFIG;
49     
50     /**
51         Get a Map keyed by Attribute name of all monitoring levels.
52         Attribute names correspond to the various get methods eg
53         "JVM" for {@link #getJVM},
54         "ConnectorService" for {@link #getConnectorService}, etc.
55         <p>
56         The possible levels are as defined in {@link ModuleMonitoringLevelValues}.
57      */

58     public Map JavaDoc<String JavaDoc,String JavaDoc> getAllLevels();
59     
60     /**
61         Change all monitoring levels to the specified value.
62         
63         @param value one of the values in {@link ModuleMonitoringLevelValues}
64      */

65     public void changeAll( final String JavaDoc value );
66     
67     public String JavaDoc getJVM();
68     
69     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
70     public void setJVM( final String JavaDoc value );
71     
72     public String JavaDoc getConnectorService();
73     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
74     public void setConnectorService( final String JavaDoc value );
75     
76     public String JavaDoc getJMSService();
77     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
78     public void setJMSService( final String JavaDoc value );
79     
80     public String JavaDoc getConnectorConnectionPool();
81     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
82     public void setConnectorConnectionPool( final String JavaDoc value );
83
84     public String JavaDoc getEJBContainer();
85     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
86     public void setEJBContainer( final String JavaDoc value );
87
88     public String JavaDoc getHTTPService();
89     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
90     public void setHTTPService( final String JavaDoc value );
91
92     public String JavaDoc getJDBCConnectionPool();
93     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
94     public void setJDBCConnectionPool( final String JavaDoc value );
95
96     public String JavaDoc getORB();
97     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
98     public void setORB( final String JavaDoc value );
99
100     public String JavaDoc getThreadPool();
101     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
102     public void setThreadPool( final String JavaDoc value );
103
104     public String JavaDoc getTransactionService();
105     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
106     public void setTransactionService( final String JavaDoc value );
107
108     public String JavaDoc getWebContainer();
109     /** @param value one of the values in {@link ModuleMonitoringLevelValues} */
110     public void setWebContainer( final String JavaDoc value );
111
112
113
114
115 }
116
Popular Tags