org.apache.jmeter.threads.JMeterContextService.decrNumberOfThreads()方法的使用及代码示例

x33g5p2x  于9个月前 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(13)

本文整理了Java中org.apache.jmeter.threads.JMeterContextService.decrNumberOfThreads()方法的一些代码示例,展示了JMeterContextService.decrNumberOfThreads()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMeterContextService.decrNumberOfThreads()方法的具体详情如下:
包路径:org.apache.jmeter.threads.JMeterContextService
类名称:JMeterContextService
方法名:decrNumberOfThreads

JMeterContextService.decrNumberOfThreads介绍

[英]Decrement number of active threads.
[中]减少活动线程的数量。

代码示例

代码示例来源:origin: Blazemeter/jmeter-bzm-plugins

public static void decrNumberOfThreads() {
  JMeterContextService.decrNumberOfThreads();
}

代码示例来源:origin: undera/jmeter-plugins

public static void decrNumberOfThreads() {
  JMeterContextService.decrNumberOfThreads();
  refreshUI();
}

代码示例来源:origin: kg.apc/jmeter-plugins-standard

public static void decrNumberOfThreads() {
  JMeterContextService.decrNumberOfThreads();
  refreshUI();
}

代码示例来源:origin: kg.apc/jmeter-plugins-casutg

public static void decrNumberOfThreads() {
  JMeterContextService.decrNumberOfThreads();
  refreshUI();
}

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core

@Override
  public void threadFinished() {
    JMeterContextService.decrNumberOfThreads();
    GuiPackage gp =GuiPackage.getInstance();
    if (gp != null) {// check there is a GUI
      gp.getMainFrame().updateCounts();
    }
    for (RemoteThreadsLifeCycleListener listener : listeners) {
      listener.threadNumberDecreased(JMeterContextService.getNumberOfThreads());
    }
  }
}

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core

private void threadFinished(LoopIterationListener iterationListener) {
  ThreadListenerTraverser shut = new ThreadListenerTraverser(false);
  testTree.traverse(shut); // call ThreadListener.threadFinished()
  JMeterContextService.decrNumberOfThreads();
  threadGroup.decrNumberOfThreads();
  GuiPackage gp = GuiPackage.getInstance();
  if (gp != null){// check there is a GUI
    gp.getMainFrame().updateCounts();
  }
  if (iterationListener != null) { // probably not possible, but check anyway
    threadGroupLoopController.removeIterationListener(iterationListener);
  }
}

相关文章