KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > management > model > ServletWebServiceEndpointMdl


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 package com.sun.enterprise.management.model;
25
26 import javax.management.ObjectName JavaDoc;
27 import java.util.Set JavaDoc;
28 import java.util.Map JavaDoc;
29 import com.sun.enterprise.admin.wsmgmt.msg.MessageTraceMgr;
30 import com.sun.appserv.management.ext.wsmgmt.MessageTrace;
31 import com.sun.enterprise.admin.wsmgmt.stats.spi.StatsProviderManager;
32 import com.sun.enterprise.admin.wsmgmt.stats.spi.WebServiceEndpointStatsProvider;
33
34 /**
35  * WebServiceEndpoint type rutime MBean for Servlet web service endpoints.
36  * This MBean provides functionality required for content visualization.
37  */

38 public class ServletWebServiceEndpointMdl extends WebServiceEndpointMdl {
39     
40     /**
41      * Public constructor.
42      *
43      * @param name Name of the web service endpoint
44      * @param moduleName Name of the module (which this web service belongs)
45      * @param regName registration name of the application or module
46      * @param isVirtual true, if the module is stand alone, false otherwise
47      * @param isEjb If this Web service endpoint is implemented as EJB
48      * or Servlet
49      */

50     public ServletWebServiceEndpointMdl(String JavaDoc name,String JavaDoc mName,String JavaDoc regName,
51            boolean isVirtual, boolean isejb) {
52
53         super(name,mName, regName, isVirtual, isejb);
54     }
55
56     /**
57      * Public constructor.
58      *
59      * @param name Name of the web service endpoint
60      * @param moduleName Name of the module (which this web service belongs)
61      * @param regName registration name of the application or module
62      * @param serverName Name of the server instance
63      * @param isVirtual true, if the module is stand alone, false otherwise
64      * @param isEjb If this Web service endpoint is implemented as EJB
65      * or Servlet
66      */

67     public ServletWebServiceEndpointMdl(String JavaDoc name, String JavaDoc moduleName,
68             String JavaDoc regName, String JavaDoc serverName,boolean isVirtual,boolean isejb) {
69
70         super(name,moduleName, regName, serverName, isVirtual,isejb);
71     }
72
73     /**
74      * The MBean name of the J2EEManagedObject as specified in
75      * runtime-mbeans-descriptors.xml. This value is used in registering the
76      * MBean.
77      *
78      * @return String MBeanName value of this Managed Object
79      */

80     public String JavaDoc getMBeanName() {
81              return WEB_MBEAN;
82     }
83 }
84
Popular Tags