KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > j2ee > J2EEManagedObject


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/j2ee/J2EEManagedObject.java,v 1.3 2005/12/25 03:50:42 tcfujii Exp $
26  * $Revision: 1.3 $
27  * $Date: 2005/12/25 03:50:42 $
28  */

29  
30 package com.sun.appserv.management.j2ee;
31  
32
33 import com.sun.appserv.management.base.AMX;
34 import com.sun.appserv.management.config.AMXConfig;
35 import com.sun.appserv.management.monitor.Monitoring;
36
37
38  /**
39     The J2EEManagedObject model is the base model of all managed objects
40     in the J2EE Management Model. All managed objects in the J2EE Platform
41     must implement the J2EEManagedObject model.
42   */

43  public interface J2EEManagedObject extends AMX, ConfigProvider
44  {
45     /**
46         The ObjectName of the J2EEManagedObject.
47         All managed objects must have a unique name within the context of
48         the management domain. The name must not be null.
49         <p>
50         Note that the Attribute name is case-sensitive
51         "getobjectName" as defined by JSR 77.
52         
53         @return the ObjectName of the object, as a String
54      */

55     public String JavaDoc getobjectName();
56     
57     /**
58         If true, indicates that the managed object provides event
59         notification about events that occur on that object.
60         
61         NOTE: JSR 77 defines the Attribute name as "eventProvider".
62      */

63     public boolean iseventProvider();
64     
65     /**
66         If true, indicates that this managed object implements the
67         StateManageable model and is state manageable.
68         <p>
69         Note that the Attribute name is case-sensitive
70         "stateManageable" as defined by JSR 77.
71      */

72     public boolean isstateManageable();
73     
74     /**
75         If true, indicates that the managed object supports performance
76         statistics and therefore implements the StatisticsProvider model.
77         <p>
78         Note that the Attribute name is case-sensitive
79         "statisticProvider" as defined by JSR 77.
80      */

81     public boolean isstatisticProvider();
82     public boolean isstatisticsProvider();
83  
84
85
86     /**
87         Get the Monitoring (if any)
88         
89         @return the proxy, or null if none
90      */

91     public Monitoring getMonitoringPeer();
92     
93     /**
94         Get the corresponding configuration peer for this MBean (if any).
95         The returned proxy will implement the appropriate interface, not
96         just AMXConfig.
97         
98         @return a proxy, or null if not found or inappropriate
99      */

100     public AMXConfig getConfigPeer();
101 }
102
Popular Tags