congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TomcatJMXPerf
Code IndexAdd Tabnine to your IDE (free)

How to use
TomcatJMXPerf
in
scouter.agent.counter.task

Best Java code snippets using scouter.agent.counter.task.TomcatJMXPerf (Showing top 6 results out of 315)

origin: scouter-project/scouter

String port = mbean.getKeyProperty("name");
try {
  String objName = conf.getObjName() + "/" + checkObjName(port);
  String objType = getReqProcType();
  AgentHeartBeat.addObject(objType, HashUtil.hash(objName), objName);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "bytesReceived",
      CounterConstants.REQUESTPROCESS_BYTES_RECEIVED);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "bytesSent",
      CounterConstants.REQUESTPROCESS_BYTES_SENT);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "errorCount",
      CounterConstants.REQUESTPROCESS_ERROR_COUNT);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "processingTime",
      CounterConstants.REQUESTPROCESS_PROCESSING_TIME);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "requestCount",
      CounterConstants.REQUESTPROCESS_REQUEST_COUNT);
} catch (Exception e) {
    String objName = conf.getObjName() + "/" + checkObjName(name);
    String objType = getDataSourceType();
    AgentHeartBeat.addObject(objType, HashUtil.hash(objName), objName);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "numActive",
        CounterConstants.DATASOURCE_CONN_ACTIVE);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "numIdle",
        CounterConstants.DATASOURCE_CONN_IDLE);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "maxActive",
        CounterConstants.DATASOURCE_CONN_MAX);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "maxTotal",
        CounterConstants.DATASOURCE_CONN_MAX);
origin: scouter-project/scouter

getMBeanServer();
if ((collectCnt <= 40 && collectCnt % 5 == 0) || ObjTypeDetector.dirtyConfig) {
  if (ObjTypeDetector.dirtyConfig) {
    ObjTypeDetector.dirtyConfig = false;
  getMBeanList();
      long v = CastUtil.clong(server.getAttribute(beanObj.mbean, beanObj.attrName));
      if (deltas.contains(beanObj.counter)) {
        v = getDelta(key, v);
        MeterResource meter = getMeter(key);
        meter.add(v);
        v = (long) meter.getSum(60);
        pw.getPack(beanObj.objName, TimeTypeEnum.FIVE_MIN).add(beanObj.counter, new DecimalValue(sum));
      } else {
        MeterResource meter = getMeter(key);
        meter.add(v);
        double avg = meter.getAvg(300);
origin: scouter-project/scouter

getMBeanServer();
if ((collectCnt <= 40 && collectCnt % 5 == 0) || ObjTypeDetector.dirtyConfig) {
  if (ObjTypeDetector.dirtyConfig) {
    ObjTypeDetector.dirtyConfig = false;
  getMBeanList();
      long v = CastUtil.clong(server.getAttribute(beanObj.mbean, beanObj.attrName));
      if (deltas.contains(beanObj.counter)) {
        v = getDelta(key, v);
        MeterResource meter = getMeter(key);
        meter.add(v);
        v = (long) meter.getSum(60);
        pw.getPack(beanObj.objName, TimeTypeEnum.FIVE_MIN).add(beanObj.counter, new DecimalValue(sum));
      } else {
        MeterResource meter = getMeter(key);
        meter.add(v);
        double avg = meter.getAvg(300);
origin: io.github.scouter-project/scouter-agent-java

getMBeanServer();
if ((collectCnt <= 40 && collectCnt % 5 == 0) || ObjTypeDetector.dirtyConfig) {
  if (ObjTypeDetector.dirtyConfig) {
    ObjTypeDetector.dirtyConfig = false;
  getMBeanList();
      long v = CastUtil.clong(server.getAttribute(beanObj.mbean, beanObj.attrName));
      if (deltas.contains(beanObj.counter)) {
        v = getDelta(key, v);
        MeterResource meter = getMeter(key);
        meter.add(v);
        v = (long) meter.getSum(60);
        pw.getPack(beanObj.objName, TimeTypeEnum.FIVE_MIN).add(beanObj.counter, new DecimalValue(sum));
      } else {
        MeterResource meter = getMeter(key);
        meter.add(v);
        double avg = meter.getAvg(300);
origin: scouter-project/scouter

String port = mbean.getKeyProperty("name");
try {
  String objName = conf.getObjName() + "/" + checkObjName(port);
  String objType = getReqProcType();
  AgentHeartBeat.addObject(objType, HashUtil.hash(objName), objName);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "bytesReceived",
      CounterConstants.REQUESTPROCESS_BYTES_RECEIVED);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "bytesSent",
      CounterConstants.REQUESTPROCESS_BYTES_SENT);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "errorCount",
      CounterConstants.REQUESTPROCESS_ERROR_COUNT);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "processingTime",
      CounterConstants.REQUESTPROCESS_PROCESSING_TIME);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "requestCount",
      CounterConstants.REQUESTPROCESS_REQUEST_COUNT);
} catch (Exception e) {
    String objName = conf.getObjName() + "/" + checkObjName(name);
    String objType = getDataSourceType();
    AgentHeartBeat.addObject(objType, HashUtil.hash(objName), objName);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "numActive",
        CounterConstants.DATASOURCE_CONN_ACTIVE);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "numIdle",
        CounterConstants.DATASOURCE_CONN_IDLE);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "maxActive",
        CounterConstants.DATASOURCE_CONN_MAX);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "maxTotal",
        CounterConstants.DATASOURCE_CONN_MAX);
origin: io.github.scouter-project/scouter-agent-java

String port = mbean.getKeyProperty("name");
try {
  String objName = conf.getObjName() + "/" + checkObjName(port);
  String objType = getReqProcType();
  AgentHeartBeat.addObject(objType, HashUtil.hash(objName), objName);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "bytesReceived",
      CounterConstants.REQUESTPROCESS_BYTES_RECEIVED);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "bytesSent",
      CounterConstants.REQUESTPROCESS_BYTES_SENT);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "errorCount",
      CounterConstants.REQUESTPROCESS_ERROR_COUNT);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "processingTime",
      CounterConstants.REQUESTPROCESS_PROCESSING_TIME);
  add(objName, mbean, objType, ValueEnum.DECIMAL, "requestCount",
      CounterConstants.REQUESTPROCESS_REQUEST_COUNT);
} catch (Exception e) {
    String objName = conf.getObjName() + "/" + checkObjName(name);
    String objType = getDataSourceType();
    AgentHeartBeat.addObject(objType, HashUtil.hash(objName), objName);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "numActive",
        CounterConstants.DATASOURCE_CONN_ACTIVE);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "numIdle",
        CounterConstants.DATASOURCE_CONN_IDLE);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "maxActive",
        CounterConstants.DATASOURCE_CONN_MAX);
    add(objName, mbean, objType, ValueEnum.DECIMAL, "maxTotal",
        CounterConstants.DATASOURCE_CONN_MAX);
scouter.agent.counter.taskTomcatJMXPerf

Most used methods

  • add
  • checkObjName
  • getDataSourceType
  • getDelta
  • getMBeanList
  • getMBeanServer
  • getMeter
  • getReqProcType

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JCheckBox (javax.swing)
  • Github Copilot alternatives
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