use of com.creditease.uav.apm.invokechain.jee.JEEServiceRunGlobalFilterHandler in project uavstack by uavorg.
the class InvokeChainSupporter method start.
@Override
public void start() {
// init the simple invokechain dataloggermgr
dlm = this.newDataLoggerManager("ivc", "com.creditease.uav.invokechain");
/**
* NOTE: when start the invokechain, we have to clean all ivc logs & lock files
*/
dlm.clearLogs();
ServerVendor vendor = (ServerVendor) UAVServer.instance().getServerInfo(CaptureConstants.INFO_APPSERVER_VENDOR);
// MSCP
if (vendor == ServerVendor.MSCP) {
// TODO
} else // JEE
{
// register ServiceStartInvokeChainHandler to GlobalFilter
GlobalFilterDispatchListener listener = (GlobalFilterDispatchListener) InterceptSupport.instance().getEventListener(GlobalFilterDispatchListener.class);
listener.registerHandler(new JEEServiceRunGlobalFilterHandler("JEEServiceRunGlobalFilterHandler"));
}
// register ServiceEndInvokeChainHandler
handlerMap.put(InvokeChainConstants.CHAIN_APP_SERVICE, new ServiceSpanInvokeChainHandler());
// register ClientSpanInvokeChainHandler
handlerMap.put(InvokeChainConstants.CHAIN_APP_CLIENT, new ClientSpanInvokeChainHandler());
// register MethodSpanInvokeChainHandler
handlerMap.put(InvokeChainConstants.CHAIN_APP_METHOD, new MethodSpanInvokeChainHandler());
}
Aggregations