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

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

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

origin: scouter-project/scouter

private void gatherAndSendInteractionCounter(long now) {
  InteractionCounterBasket basket = new InteractionCounterBasket();
  for (int i = 0; i < interactionCountStatList.size(); i++) {
    CountStat stat = interactionCountStatList.get(i);
    try {
      if (stat.counter.interval() <= now - stat.xtime) {
        stat.xtime = now;
        stat.counter.process(basket);
      }
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
  InteractionPerfCounterPack[] packs = basket.geAllAsArray();
  if (packs != null && packs.length > 0) {
    DataProxy.sendCounter(packs);
  }
}
origin: scouter-project/scouter

private void gatherAndSendCounter(long now) {
  CounterBasket basket = new CounterBasket();
  for (int i = 0; i < countStatList.size(); i++) {
    CountStat stat = countStatList.get(i);
    try {
      if (stat.counter.interval() <= now - stat.xtime) {
        stat.xtime = now;
        stat.counter.process(basket);
      }
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
  PerfCounterPack[] packs = basket.getList();
  DataProxy.sendCounter(packs);
}
origin: scouter-project/scouter

private void gatherAndSendCounter(long now) {
  CounterBasket basket = new CounterBasket();
  for (int i = 0; i < countStatList.size(); i++) {
    CountStat stat = countStatList.get(i);
    try {
      if (stat.counter.interval() <= now - stat.xtime) {
        stat.xtime = now;
        stat.counter.process(basket);
      }
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
  PerfCounterPack[] packs = basket.getList();
  DataProxy.sendCounter(packs);
}
origin: scouter-project/scouter

private void gatherAndSendInteractionCounter(long now) {
  InteractionCounterBasket basket = new InteractionCounterBasket();
  for (int i = 0; i < interactionCountStatList.size(); i++) {
    CountStat stat = interactionCountStatList.get(i);
    try {
      if (stat.counter.interval() <= now - stat.xtime) {
        stat.xtime = now;
        stat.counter.process(basket);
      }
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
  InteractionPerfCounterPack[] packs = basket.geAllAsArray();
  if (packs != null && packs.length > 0) {
    DataProxy.sendCounter(packs);
  }
}
origin: scouter-project/scouter

public void run() {
  while (true) {
    ThreadUtil.sleep(1000);
    if (conf.counter_enabled == false) {
      continue;
    }
    long now = System.currentTimeMillis();
    CounterBasket pw = new CounterBasket();
    for (int i = 0; i < taskSec.size(); i++) {
      CountStat r = taskSec.get(i);
      try {
        if (r.counter.interval() <= now - r.xtime) {
          r.xtime = now;
          r.counter.process(pw);
        }
      } catch (Throwable t) {
        t.printStackTrace();
      }
    }
    //
    PerfCounterPack[] pks = pw.getList();
    DataProxy.sendCounter(pks);
  }
}
private CounterExecutingManager() {
origin: scouter-project/scouter

fiveminPcp.put(CounterConstants.JAVA_PERM_USED, new DecimalValue(5));
fiveminPcp.put(CounterConstants.JAVA_PROCESS_CPU, new DecimalValue(5));
DataProxy.sendCounter(new PerfCounterPack[]{pcp, fiveminPcp});
origin: scouter-project/scouter

fiveminPcp.put(CounterConstants.JAVA_PERM_USED, new DecimalValue(5));
fiveminPcp.put(CounterConstants.JAVA_PROCESS_CPU, new DecimalValue(5));
DataProxy.sendCounter(new PerfCounterPack[]{pcp, fiveminPcp});
origin: io.github.scouter-project/scouter-agent-java

private void gatherAndSendCounter(long now) {
  CounterBasket basket = new CounterBasket();
  for (int i = 0; i < countStatList.size(); i++) {
    CountStat stat = countStatList.get(i);
    try {
      if (stat.counter.interval() <= now - stat.xtime) {
        stat.xtime = now;
        stat.counter.process(basket);
      }
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
  PerfCounterPack[] packs = basket.getList();
  DataProxy.sendCounter(packs);
}
origin: io.github.scouter-project/scouter-agent-java

private void gatherAndSendInteractionCounter(long now) {
  InteractionCounterBasket basket = new InteractionCounterBasket();
  for (int i = 0; i < interactionCountStatList.size(); i++) {
    CountStat stat = interactionCountStatList.get(i);
    try {
      if (stat.counter.interval() <= now - stat.xtime) {
        stat.xtime = now;
        stat.counter.process(basket);
      }
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
  InteractionPerfCounterPack[] packs = basket.geAllAsArray();
  if (packs != null && packs.length > 0) {
    DataProxy.sendCounter(packs);
  }
}
origin: io.github.scouter-project/scouter-agent-java

fiveminPcp.put(CounterConstants.JAVA_PERM_USED, new DecimalValue(5));
fiveminPcp.put(CounterConstants.JAVA_PROCESS_CPU, new DecimalValue(5));
DataProxy.sendCounter(new PerfCounterPack[]{pcp, fiveminPcp});
scouter.agent.netio.dataDataProxysendCounter

Popular methods of DataProxy

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

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JCheckBox (javax.swing)
  • Top PhpStorm plugins
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