Search in sources :

Example 61 with InterceptContext

use of com.creditease.monitor.interceptframework.spi.InterceptContext in project uavstack by uavorg.

the class WebServiceListenerIT method obtainWsInfo.

public void obtainWsInfo(Object address, Object impl) {
    InterceptContext ic = InterceptSupport.instance().getThreadLocalContext(Event.WEBCONTAINER_STARTED);
    @SuppressWarnings("unchecked") List<WebServiceProfileInfo> list = (ArrayList<WebServiceProfileInfo>) ic.get("webservice.profile.info");
    if (null == list) {
        list = new ArrayList<WebServiceProfileInfo>();
        ic.put("webservice.profile.info", list);
    }
    setWsInfo(list, address, impl);
}
Also used : InterceptContext(com.creditease.monitor.interceptframework.spi.InterceptContext) ArrayList(java.util.ArrayList) WebServiceProfileInfo(com.creditease.uav.profiling.handlers.webservice.WebServiceProfileInfo)

Aggregations

InterceptContext (com.creditease.monitor.interceptframework.spi.InterceptContext)61 InterceptSupport (com.creditease.monitor.interceptframework.InterceptSupport)28 ServletContext (javax.servlet.ServletContext)12 StandardContext (org.apache.catalina.core.StandardContext)12 Servlet (javax.servlet.Servlet)6 ProfileElementInstance (com.creditease.uav.profiling.spi.ProfileElementInstance)5 LinkedHashMap (java.util.LinkedHashMap)4 Map (java.util.Map)4 StandardWrapper (org.apache.catalina.core.StandardWrapper)4 WebappClassLoader (org.apache.catalina.loader.WebappClassLoader)4 UAVServer (com.creditease.monitor.UAVServer)3 Event (com.creditease.monitor.interceptframework.spi.InterceptContext.Event)3 DynamicProxyProcessor (com.creditease.uav.monitorframework.dproxy.DynamicProxyProcessor)3 DPMethod (com.creditease.uav.monitorframework.dproxy.bytecode.DPMethod)3 DubboServiceProfileInfo (com.creditease.uav.profiling.handlers.dubbo.DubboServiceProfileInfo)3 HashMap (java.util.HashMap)3 WebAppContext (org.eclipse.jetty.webapp.WebAppContext)3 IConfigurationManager (com.creditease.agent.spi.IConfigurationManager)2 LogProfileInfo (com.creditease.uav.profiling.handlers.log.LogProfileInfo)2 WebServiceProfileInfo (com.creditease.uav.profiling.handlers.webservice.WebServiceProfileInfo)2