KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > monitor > callflow > AgentAdapter


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  * AgentAdapter.java
26  * $Id: AgentAdapter.java,v 1.17 2005/12/25 04:10:35 tcfujii Exp $
27  * $Date: 2005/12/25 04:10:35 $
28  * $Revision: 1.17 $
29  */

30 package com.sun.enterprise.admin.monitor.callflow;
31
32 /**
33  * This class provides a fallback implementation.
34  */

35 public class AgentAdapter implements Agent {
36     
37     public void requestStart(RequestType requestType) {}
38     public void addRequestInfo(RequestInfo requestInfo, String JavaDoc value) {}
39     public void requestEnd() {}
40     public void startTime(ContainerTypeOrApplicationType type) {}
41     public void endTime() {}
42     
43     public void ejbMethodStart(CallFlowInfo info) {}
44     public void ejbMethodEnd(CallFlowInfo info) {}
45                     
46     public void webMethodStart(
47             String JavaDoc methodName, String JavaDoc applicationName, String JavaDoc moduleName,
48             String JavaDoc componentName, ComponentType componentType,
49             String JavaDoc callerPrincipal) {}
50     public void webMethodEnd(Throwable JavaDoc exception) {}
51     
52     public void registerListener(Listener listener) {}
53     public void unregisterListener(Listener listener) {}
54             
55     public ThreadLocalData getThreadLocalData() {
56         return null;
57     }
58     
59     public void setEnable(boolean enable) {}
60
61     public boolean isEnabled() {return false;}
62     
63     public void setCallerIPFilter(String JavaDoc ipAddress) {}
64     
65     public void setCallerPrincipalFilter(String JavaDoc callerPrincipal) {}
66     
67     public String JavaDoc getCallerPrincipalFilter() {
68         return null;
69     }
70
71     public String JavaDoc getCallerIPFilter() {
72         return null;
73     }
74
75     public void clearData() {}
76
77     public boolean deleteRequestIds (String JavaDoc[] requestIds){
78         return true;
79     }
80     
81     public java.util.List JavaDoc<java.util.Map JavaDoc<String JavaDoc, String JavaDoc>>
82             getRequestInformation() {
83         return null;
84     }
85
86     public java.util.List JavaDoc<java.util.Map JavaDoc<String JavaDoc, String JavaDoc>>
87             getCallStackForRequest(String JavaDoc requestId) {
88         return null;
89     }
90     
91     public java.util.Map JavaDoc<String JavaDoc, String JavaDoc> getPieInformation (String JavaDoc requestID) {
92         return null;
93     }
94 }
95
Popular Tags