public static void dispatchAsyncServlet(Object asyncContext, String url) { if (http == null) return; TraceContext ctx = http.getTraceContextFromAsyncContext(asyncContext); if (ctx == null) return; boolean self = http.isSelfDispatch(asyncContext); if (self) { //http.setSelfDispatch(asyncContext, false); //return; } if (ctx.gxid == 0) { ctx.gxid = ctx.txid; } long callee = KeyGen.next(); http.setDispatchTransferMap(asyncContext, ctx.gxid, ctx.txid, callee, XLogTypes.ASYNCSERVLET_DISPATCHED_SERVICE); DispatchStep step = new DispatchStep(); step.txid = callee; step.start_time = (int) (System.currentTimeMillis() - ctx.startTime); // It maybe another thread if (ctx.profile_thread_cputime) { step.start_cpu = -1; step.cputime = -1; } step.address = "dispatch"; if (self) url = "[self]"; step.hash = DataProxy.sendApicall(step.address + "://" + url); ctx.profile.add(step); }
break; case DISPATCH: textLoader.addTextHash(textTypeEnum, ((DispatchStep) step).getHash()); break; case THREAD_CALL_POSSIBLE:
break; case DISPATCH: mainValue = textTypeEnum.getTextModel().getTextIfNullDefault(date, ((DispatchStep) step).getHash(), serverId); break; case THREAD_CALL_POSSIBLE:
public static void dispatchAsyncServlet(Object asyncContext, String url) { if (http == null) return; TraceContext ctx = http.getTraceContextFromAsyncContext(asyncContext); if (ctx == null) return; boolean self = http.isSelfDispatch(asyncContext); if (self) { //http.setSelfDispatch(asyncContext, false); //return; } if (ctx.gxid == 0) { ctx.gxid = ctx.txid; } long callee = KeyGen.next(); http.setDispatchTransferMap(asyncContext, ctx.gxid, ctx.txid, callee, XLogTypes.ASYNCSERVLET_DISPATCHED_SERVICE); DispatchStep step = new DispatchStep(); step.txid = callee; step.start_time = (int) (System.currentTimeMillis() - ctx.startTime); // It maybe another thread if (ctx.profile_thread_cputime) { step.start_cpu = -1; step.cputime = -1; } step.address = "dispatch"; if (self) url = "[self]"; step.hash = DataProxy.sendApicall(step.address + "://" + url); ctx.profile.add(step); }
break; case DISPATCH: textLoader.addTextHash(textTypeEnum, ((DispatchStep) step).getHash()); break; case THREAD_CALL_POSSIBLE:
public static void dispatchAsyncServlet(Object asyncContext, String url) { if (http == null) return; TraceContext ctx = http.getTraceContextFromAsyncContext(asyncContext); if (ctx == null) return; boolean self = http.isSelfDispatch(asyncContext); if (self) { //http.setSelfDispatch(asyncContext, false); //return; } if (ctx.gxid == 0) { ctx.gxid = ctx.txid; } long callee = KeyGen.next(); http.setDispatchTransferMap(asyncContext, ctx.gxid, ctx.txid, callee, XLogTypes.ASYNCSERVLET_DISPATCHED_SERVICE); DispatchStep step = new DispatchStep(); step.txid = callee; step.start_time = (int) (System.currentTimeMillis() - ctx.startTime); // It maybe another thread if (ctx.profile_thread_cputime) { step.start_cpu = -1; step.cputime = -1; } step.address = "dispatch"; if (self) url = "[self]"; step.hash = DataProxy.sendApicall(step.address + "://" + url); ctx.profile.add(step); }
break; case DISPATCH: mainValue = textTypeEnum.getTextModel().getTextIfNullDefault(date, ((DispatchStep) step).getHash(), serverId); break; case THREAD_CALL_POSSIBLE: