KickJava   Java API By Example, From Geeks To Geeks.

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


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 package com.sun.appserv.management.j2ee;
24
25 import java.util.Map JavaDoc;
26
27 import java.io.Serializable JavaDoc;
28
29 import com.sun.appserv.management.j2ee.J2EEManagedObject;
30 import com.sun.appserv.management.j2ee.J2EETypes;
31 import com.sun.appserv.management.monitor.WebServiceEndpointMonitor;
32 import com.sun.appserv.management.ext.wsmgmt.MessageTrace;
33 import com.sun.appserv.management.monitor.statistics.WebServiceEndpointAggregateStats;
34
35 /**
36  * The extension to the JSR 77 hierarchy for a WebService Endpoint.
37  *
38  * @since AppServer 9.0
39  */

40 public interface WebServiceEndpoint extends J2EEManagedObject
41 {
42     public final static String JavaDoc J2EE_TYPE = J2EETypes.WEB_SERVICE_ENDPOINT;
43
44     /**
45      * Implementation {@link Servlet} or {@link EJB} JSR77 mbean is returned.
46      *
47      * @return Implementation {@link Servlet} or {@link EJB} JSR77 mbean
48      */

49     //public J2EEManagedObject getImplementationPeer();
50

51     /**
52      * This returns the underlying implementation Servlet or EJB' type
53      *
54      * @return either SERVLET or EJB
55      */

56     public String JavaDoc getImplementationType();
57
58
59     /**
60      * Returns last N message content and info collected for this web service.
61      * WILL CHANGE: actual return type will be CompositeData OR Map
62      *
63      * @return Map containers keys from {@link MessageTrace}
64      */

65     public MessageTrace[] getMessagesInHistory();
66
67     /**
68      * Reset all the statistics
69      */

70     public void resetStats();
71
72     /**
73      * Returns last reset timestamp in milliseconds.
74      *
75      * @return last reset timestamp in milliseconds
76      */

77     public long getLastResetTime();
78
79 }
80
Popular Tags