Codota Logo
scouter.agent.counter
Code IndexAdd Codota to your IDE (free)

How to use scouter.agent.counter

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: scouter-project/scouter

  public static void main(String[] args) {
    load();
  }
}
origin: scouter-project/scouter

public final static synchronized CounterExecutingManager getInstance() {
  if (instance == null) {
    instance = new CounterExecutingManager();
    instance.setDaemon(true);
    instance.setName(ThreadUtil.getName(instance));
    instance.start();
  }
  return instance;
}
origin: scouter-project/scouter

public void put(Invocation counter) {
  taskSec.add(new CountStat(counter));
}
protected static class Invocation {
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

  public static void counter(CounterBasket cw) {

    if (plugIn != null) {
      try {
        plugIn.counter(cw.getPack(TimeTypeEnum.REALTIME));
      } catch (Throwable th) {
      }
    }

  }
}
origin: scouter-project/scouter

public void run() {
  while (true) {
    ThreadUtil.sleep(1000);
    if (conf.counter_enabled == false) {
      continue;
    }
    long now = System.currentTimeMillis();
    gatherAndSendCounter(now);
    gatherAndSendInteractionCounter(now);
  }
}
origin: scouter-project/scouter

public PerfCounterPack getPack(String objName, byte timeType) {
  Key key = new Key(objName, timeType);
  PerfCounterPack p = table.get(key);
  if (p == null) {
    p = new PerfCounterPack();
    p.objName = objName;
    p.timetype = timeType;
    table.put(key, p);
  }
  return p;
}
origin: scouter-project/scouter

public void sendBatchService(long currentTime){
  if(server == null){
    return;
  }
  
  checkBatchService(currentTime);
  updateBatchService();
  PerfCounterPack[] pks = cb.getList();
  sendCounter(pks);
}

origin: scouter-project/scouter

public final static synchronized CounterExecutingManager getInstance() {
  if (instance == null) {
    instance = new CounterExecutingManager();
    instance.setDaemon(true);
    instance.setName(ThreadUtil.getName(instance));
    instance.start();
  }
  return instance;
}
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

  public static void counter(CounterBasket cw) {

    if (plugIn != null) {
      try {
        plugIn.counter(cw.getPack(TimeTypeEnum.REALTIME));
      } catch (Throwable th) {
      }
    }

  }
}
origin: scouter-project/scouter

public void putInteractionCounter(Invocation counter) {
  interactionCountStatList.add(new CountStat(counter));
}
origin: scouter-project/scouter

public PerfCounterPack getPack(String objName, byte timeType) {
  Key key = new Key(objName, timeType);
  PerfCounterPack p = table.get(key);
  if (p == null) {
    p = new PerfCounterPack();
    p.objName = objName;
    p.timetype = timeType;
    table.put(key, p);
  }
  return p;
}
origin: scouter-project/scouter

public final static synchronized CounterExecutingManager getInstance() {
  if (instance == null) {
    instance = new CounterExecutingManager();
    instance.setDaemon(true);
    instance.setName(ThreadUtil.getName(instance));
    instance.start();
  }
  return instance;
}

origin: scouter-project/scouter

public PerfCounterPack getPack(byte timeType) {
  return getPack(Configure.getInstance().getObjName(), timeType);
}
origin: scouter-project/scouter

public void putInteractionCounter(Invocation counter) {
  interactionCountStatList.add(new CountStat(counter));
}
origin: scouter-project/scouter

public PerfCounterPack getPack(byte timeType) {
  return getPack(Configure.getInstance().getObjName(), timeType);
}
origin: scouter-project/scouter

public void putCounter(Invocation counter) {
  countStatList.add(new CountStat(counter));
}
origin: scouter-project/scouter

public PerfCounterPack getPack(byte timeType) {
  return getPack(Configure.getInstance().getObjName(), timeType);
}
origin: scouter-project/scouter

public void putCounter(Invocation counter) {
  countStatList.add(new CountStat(counter));
}
scouter.agent.counter

Most used classes

  • CounterBasket$Key
  • CounterBasket
  • CounterExecutingManager$CountStat
  • CounterExecutingManager$Invocation
  • CounterExecutingManager
  • MeterResource$Bucket,
  • MeterResource,
  • AgentHeartBeat,
  • InteractionCounterBasket,
  • InteractionCounter,
  • LazyPlatformMBeanServer,
  • MeterAPI$Bucket,
  • MeterAPI,
  • MeterInteraction$Bucket,
  • MeterInteraction,
  • MeterInteractionManager$Key,
  • MeterInteractionManager,
  • MeterSQL$Bucket,
  • MeterSQL
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now