Tabnine Logo
DataProxy.sendApicall
Code IndexAdd Tabnine to your IDE (free)

How to use
sendApicall
method
in
scouter.agent.netio.data.DataProxy

Best Java code snippets using scouter.agent.netio.data.DataProxy.sendApicall (Showing top 20 results out of 315)

origin: scouter-project/scouter

public static void asyncPossibleInstanceInitInvoked(Object keyObject) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (TransferMap.get(System.identityHashCode(keyObject)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String initObjName = keyObject.toString().replace("$ByteBuddy", "").replace("$$Lambda", "$$L");
    initObjName = AgentCommonConstant.normalizeHashCode(initObjName);
    threadCallPossibleStep.hash = DataProxy.sendApicall(initObjName);
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(keyObject), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1204", "Exception: asyncPossibleInstanceInitInvoked", t);
  }
}
origin: scouter-project/scouter

public static void asyncPossibleInstanceInitInvoked(Object keyObject) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (TransferMap.get(System.identityHashCode(keyObject)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String initObjName = keyObject.toString().replace("$ByteBuddy", "").replace("$$Lambda", "$$L");
    initObjName = AgentCommonConstant.normalizeHashCode(initObjName);
    threadCallPossibleStep.hash = DataProxy.sendApicall(initObjName);
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(keyObject), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1204", "Exception: asyncPossibleInstanceInitInvoked", t);
  }
}
origin: scouter-project/scouter

public static void callRunnableInitInvoked(Object callRunnableObj) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (TransferMap.get(System.identityHashCode(callRunnableObj)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnableObj.toString();
    threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName);
    ctx.lastThreadCallName = null;
    threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName);
    threadCallPossibleStep.nameTemp = threadCallName;
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(callRunnableObj), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1203", "Exception: callRunnableInitInvoked", t);
  }
}
origin: scouter-project/scouter

public static void callRunnableInitInvoked(Object callRunnableObj) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (TransferMap.get(System.identityHashCode(callRunnableObj)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnableObj.toString();
    threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName);
    ctx.lastThreadCallName = null;
    threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName);
    threadCallPossibleStep.nameTemp = threadCallName;
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(callRunnableObj), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1203", "Exception: callRunnableInitInvoked", t);
  }
}
origin: scouter-project/scouter

public static void executorServiceExecuted(Object callRunnable) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (callRunnable == null) return;
    if (callRunnable instanceof WrTaskCallable) return;
    if (TransferMap.get(System.identityHashCode(callRunnable)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.threaded = 1;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnable.getClass().getName();
    threadCallName = StringUtil.removeLastString(threadCallName, '/');
    threadCallName = threadCallName.replace("$$Lambda", "$$L");
    threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName);
    ctx.lastThreadCallName = null;
    threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName);
    threadCallPossibleStep.nameTemp = threadCallName;
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(callRunnable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1204", "Exception: executorServiceExecuted", t);
  }
}
origin: scouter-project/scouter

public static void springAsyncExecutionSubmit(Object _this, Callable callable) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (TransferMap.get(System.identityHashCode(callable)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.threaded = 1;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callable.toString();
    threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName);
    ctx.lastThreadCallName = null;
    threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName);
    threadCallPossibleStep.nameTemp = threadCallName;
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(callable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1202", "Exception: springAsyncExecutionSubmit", t);
  }
}
origin: scouter-project/scouter

public static void springAsyncExecutionSubmit(Object _this, Callable callable) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (TransferMap.get(System.identityHashCode(callable)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.threaded = 1;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callable.toString();
    threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName);
    ctx.lastThreadCallName = null;
    threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName);
    threadCallPossibleStep.nameTemp = threadCallName;
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(callable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1202", "Exception: springAsyncExecutionSubmit", t);
  }
}
origin: scouter-project/scouter

public static void executorServiceExecuted(Object callRunnable) {
  try {
    TraceContext ctx = TraceContextManager.getContext();
    if (ctx == null) return;
    if (callRunnable == null) return;
    if (callRunnable instanceof WrTaskCallable) return;
    if (TransferMap.get(System.identityHashCode(callRunnable)) != null) {
      return;
    }
    long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid;
    ctx.gxid = gxid;
    long callee = KeyGen.next();
    ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep();
    threadCallPossibleStep.txid = callee;
    threadCallPossibleStep.threaded = 1;
    threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
    String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnable.getClass().getName();
    threadCallName = StringUtil.removeLastString(threadCallName, '/');
    threadCallName = threadCallName.replace("$$Lambda", "$$L");
    threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName);
    ctx.lastThreadCallName = null;
    threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName);
    threadCallPossibleStep.nameTemp = threadCallName;
    ctx.profile.add(threadCallPossibleStep);
    TransferMap.put(System.identityHashCode(callRunnable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep);
  } catch (Throwable t) {
    Logger.println("B1204", "Exception: executorServiceExecuted", t);
  }
}
origin: scouter-project/scouter

public void forward(WrContext wctx, int uuid) {
  TraceContext ctx = wctx.inner();
  if (ctx.gxid == 0) {
    ctx.gxid = ctx.txid;
  }
  long callee = KeyGen.next();
  TransferMap.put(uuid, ctx.gxid, ctx.txid, callee, XLogTypes.APP_SERVICE);
  ApiCallStep step = new ApiCallStep();
  step.txid = callee;
  step.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
  if (ctx.profile_thread_cputime) {
    step.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu);
  }
  step.hash = DataProxy.sendApicall("local-forward");
  ctx.profile.add(step);
}
public void forwardThread(WrContext wctx, int uuid) {
origin: scouter-project/scouter

public void forward(WrContext wctx, int uuid) {
  TraceContext ctx = wctx.inner();
  if (ctx.gxid == 0) {
    ctx.gxid = ctx.txid;
  }
  long callee = KeyGen.next();
  TransferMap.put(uuid, ctx.gxid, ctx.txid, callee, XLogTypes.APP_SERVICE);
  ApiCallStep step = new ApiCallStep();
  step.txid = callee;
  step.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
  if (ctx.profile_thread_cputime) {
    step.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu);
  }
  step.hash = DataProxy.sendApicall("local-forward");
  ctx.profile.add(step);
}
public void forwardThread(WrContext wctx, int uuid) {
origin: scouter-project/scouter

public void forwardThread(WrContext wctx, int uuid) {
  if (wctx == null)
    return;
  TraceContext ctx = wctx.inner();
  if (ctx.gxid == 0) {
    ctx.gxid = ctx.txid;
  }
  long callee = KeyGen.next();
  TransferMap.put(uuid, ctx.gxid, ctx.txid, callee, XLogTypes.BACK_THREAD);
  ThreadSubmitStep step = new ThreadSubmitStep();
  step.txid = callee;
  step.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
  if (ctx.profile_thread_cputime) {
    step.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu);
  }
  step.hash = DataProxy.sendApicall("local-forward");
  ctx.profile.add(step);
}
public void receive(WrContext ctx, int uuid) {
origin: scouter-project/scouter

public void forwardThread(WrContext wctx, int uuid) {
  if (wctx == null)
    return;
  TraceContext ctx = wctx.inner();
  if (ctx.gxid == 0) {
    ctx.gxid = ctx.txid;
  }
  long callee = KeyGen.next();
  TransferMap.put(uuid, ctx.gxid, ctx.txid, callee, XLogTypes.BACK_THREAD);
  ThreadSubmitStep step = new ThreadSubmitStep();
  step.txid = callee;
  step.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
  if (ctx.profile_thread_cputime) {
    step.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu);
  }
  step.hash = DataProxy.sendApicall("local-forward");
  ctx.profile.add(step);
}
public void receive(WrContext ctx, int uuid) {
origin: scouter-project/scouter

id.tcStep.hash = DataProxy.sendApicall(serviceName);
origin: scouter-project/scouter

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);
}
origin: scouter-project/scouter

id.tcStep.hash = DataProxy.sendApicall(serviceName);
origin: scouter-project/scouter

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);
}
origin: scouter-project/scouter

  step.address = tctx.apicall_target;
step.hash = DataProxy.sendApicall(tctx.apicall_name);
tctx.apicall_name = null;
tctx.apicall_target = null;
origin: scouter-project/scouter

  step.address = tctx.apicall_target;
step.hash = DataProxy.sendApicall(tctx.apicall_name);
tctx.apicall_name = null;
tctx.apicall_target = null;
origin: io.github.scouter-project/scouter-agent-java

public void forwardThread(WrContext wctx, int uuid) {
  if (wctx == null)
    return;
  TraceContext ctx = wctx.inner();
  if (ctx.gxid == 0) {
    ctx.gxid = ctx.txid;
  }
  long callee = KeyGen.next();
  TransferMap.put(uuid, ctx.gxid, ctx.txid, callee, XLogTypes.BACK_THREAD);
  ThreadSubmitStep step = new ThreadSubmitStep();
  step.txid = callee;
  step.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
  if (ctx.profile_thread_cputime) {
    step.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu);
  }
  step.hash = DataProxy.sendApicall("local-forward");
  ctx.profile.add(step);
}
public void receive(WrContext ctx, int uuid) {
origin: io.github.scouter-project/scouter-agent-java

public void forward(WrContext wctx, int uuid) {
  TraceContext ctx = wctx.inner();
  if (ctx.gxid == 0) {
    ctx.gxid = ctx.txid;
  }
  long callee = KeyGen.next();
  TransferMap.put(uuid, ctx.gxid, ctx.txid, callee, XLogTypes.APP_SERVICE);
  ApiCallStep step = new ApiCallStep();
  step.txid = callee;
  step.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
  if (ctx.profile_thread_cputime) {
    step.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu);
  }
  step.hash = DataProxy.sendApicall("local-forward");
  ctx.profile.add(step);
}
public void forwardThread(WrContext wctx, int uuid) {
scouter.agent.netio.dataDataProxysendApicall

Popular methods of DataProxy

  • reset
  • sendAlert
  • sendCounter
  • sendDirect
  • sendHeartBeat
  • getSqlHash
  • send
  • sendDesc
  • sendError
  • sendGroup
  • sendHashedMessage
  • sendLogin
  • sendHashedMessage,
  • sendLogin,
  • sendMethodName,
  • sendObjName,
  • sendProfile,
  • sendServiceName,
  • sendSqlText,
  • sendStackElement,
  • sendWebName

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Notification (javax.management)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now