use of com.creditease.monitor.interceptframework.spi.InterceptContext in project uavstack by uavorg.
the class JaxWSCxfHookProxy method insertIntercepter.
private void insertIntercepter(HookContext context, ClassLoader webapploader) {
if (isHookEventDone("InsertInterceptToClients")) {
return;
}
InterceptContext ic = (InterceptContext) context.get(HookConstants.INTERCEPTCONTEXT);
String contextPath = (String) ic.get(InterceptConstants.CONTEXTPATH);
String basePath = (String) ic.get(InterceptConstants.BASEPATH);
final String appid = MonitorServerUtil.getApplicationId(contextPath, basePath);
doInstallDProxy(webapploader, appid);
}
use of com.creditease.monitor.interceptframework.spi.InterceptContext in project uavstack by uavorg.
the class TransportHookProxy method insertIntercepter.
protected void insertIntercepter(HookContext context, ClassLoader webapploader) {
if (isHookEventDone("insertIntercepter")) {
return;
}
InterceptContext ic = (InterceptContext) context.get(HookConstants.INTERCEPTCONTEXT);
String contextPath = (String) ic.get(InterceptConstants.CONTEXTPATH);
String basePath = (String) ic.get(InterceptConstants.BASEPATH);
final String appid = MonitorServerUtil.getApplicationId(contextPath, basePath);
doProxyInstall(webapploader, appid);
}
use of com.creditease.monitor.interceptframework.spi.InterceptContext in project uavstack by uavorg.
the class HttpClientHookProxy method InsertInterceptToClients.
public void InsertInterceptToClients(HookContext context, ClassLoader webapploader) {
if (isHookEventDone("InsertInterceptToClients")) {
return;
}
InterceptContext ic = (InterceptContext) context.get(HookConstants.INTERCEPTCONTEXT);
String contextPath = (String) ic.get(InterceptConstants.CONTEXTPATH);
String basePath = (String) ic.get(InterceptConstants.BASEPATH);
final String appid = MonitorServerUtil.getApplicationId(contextPath, basePath);
doInstallDProxy(webapploader, appid);
}
use of com.creditease.monitor.interceptframework.spi.InterceptContext in project uavstack by uavorg.
the class JdbcHookProxy method start.
@Override
public void start(HookContext context, ClassLoader webapploader) {
Event event = context.get(Event.class);
InterceptContext ic = (InterceptContext) context.get(HookConstants.INTERCEPTCONTEXT);
switch(event) {
case SPRING_BEAN_REGIST:
case WEBCONTAINER_RESOURCE_INIT:
this.injectDriverManager(webapploader, ic);
this.injectDBCP2(webapploader, ic);
this.injectTomcatDBCP2(webapploader, ic);
this.injectTomcatJdbc(webapploader, ic);
this.injectHikari(webapploader, ic);
this.injectDruid(webapploader, ic);
break;
case WEBCONTAINER_RESOURCE_CREATE:
this.injectDataSource(ic);
break;
case WEBCONTAINER_INIT:
this.injectDriverManager(webapploader, ic);
this.injectDBCP2(webapploader, ic);
this.injectTomcatDBCP2(webapploader, ic);
this.injectTomcatJdbc(webapploader, ic);
this.injectHikari(webapploader, ic);
this.injectDruid(webapploader, ic);
break;
case AFTER_SERVET_INIT:
break;
case BEFORE_SERVLET_DESTROY:
break;
case WEBCONTAINER_STARTED:
break;
case WEBCONTAINER_STOPPED:
break;
default:
break;
}
}
use of com.creditease.monitor.interceptframework.spi.InterceptContext in project uavstack by uavorg.
the class AbsDBPoolHookProxy method start.
@Override
public void start(HookContext context, ClassLoader webapploader) {
Event event = context.get(Event.class);
InterceptContext ic = (InterceptContext) context.get(HookConstants.INTERCEPTCONTEXT);
switch(event) {
case SPRING_BEAN_REGIST:
case WEBCONTAINER_INIT:
initHook(ic);
break;
case AFTER_SERVET_INIT:
break;
case BEFORE_SERVLET_DESTROY:
break;
case GLOBAL_FILTER_REQUEST:
break;
case GLOBAL_FILTER_RESPONSE:
break;
case WEBCONTAINER_RESOURCE_CREATE:
break;
case WEBCONTAINER_RESOURCE_INIT:
break;
case WEBCONTAINER_STARTED:
break;
case WEBCONTAINER_STOPPED:
break;
default:
break;
}
}
Aggregations