KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > monitor > JMXMonitorMgr


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  */

26
27 package com.sun.appserv.management.monitor;
28
29 import java.util.Map JavaDoc;
30
31 import com.sun.appserv.management.base.XTypes;
32 import com.sun.appserv.management.base.AMX;
33 import com.sun.appserv.management.base.Singleton;
34 import com.sun.appserv.management.base.Utility;
35 import com.sun.appserv.management.base.Container;
36
37 import com.sun.appserv.management.monitor.AMXStringMonitor;
38 import com.sun.appserv.management.monitor.AMXCounterMonitor;
39 import com.sun.appserv.management.monitor.AMXGaugeMonitor;
40
41
42 /**
43     Supports the standard monitoring facilities of javax.management.monitor
44     by making available routines to create the Monitors available in
45     javax.management.monitor, and to determine query which such Monitors
46     are currently loaded.
47     <p>
48     Note that the naming is somewhat confusing; the use of the term "Monitor"
49     here derives from javax.management.monitor; com.sun.appserv.monitor refers
50     to MBeans that provide statistics on appserver runtime entities.
51  */

52 public interface JMXMonitorMgr extends AMX, Singleton, Utility
53 {
54 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
55     public static final String JavaDoc J2EE_TYPE = XTypes.JMX_MONITOR_MGR;
56     
57     /**
58         Create a new Monitor.
59         @param name
60      */

61     public AMXStringMonitor createStringMonitor( final String JavaDoc name );
62     
63     /**
64         Create a new Monitor.
65         @param name
66      */

67     public AMXCounterMonitor createCounterMonitor( final String JavaDoc name );
68     
69     /**
70         Create a new Monitor.
71         @param name
72      */

73     public AMXGaugeMonitor createGaugeMonitor( final String JavaDoc name );
74     
75     
76     /**
77         Return a Map of all AMXStringMonitor MBean. The Map is keyed by name.
78      */

79     public Map JavaDoc<String JavaDoc,AMXStringMonitor> getStringMonitorMap();
80     
81     /**
82         Return a Map of all AMXCounterMonitor. The Map is keyed by name.
83      */

84     public Map JavaDoc<String JavaDoc,AMXCounterMonitor> getCounterMonitorMap();
85     
86     /**
87         Return a Map of all AMXGaugeMonitor. The Map is keyed by name.
88      */

89     public Map JavaDoc<String JavaDoc,AMXGaugeMonitor> getGaugeMonitorMap();
90
91     
92     /**
93         Remove a Monitor by name.
94         @param name
95      */

96     public void remove( final String JavaDoc name );
97 }
98
Popular Tags