当前位置: 首页>>代码示例>>Java>>正文


Java TransactionController.setIncludeTimers方法代码示例

本文整理汇总了Java中org.apache.jmeter.control.TransactionController.setIncludeTimers方法的典型用法代码示例。如果您正苦于以下问题:Java TransactionController.setIncludeTimers方法的具体用法?Java TransactionController.setIncludeTimers怎么用?Java TransactionController.setIncludeTimers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.jmeter.control.TransactionController的用法示例。


在下文中一共展示了TransactionController.setIncludeTimers方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addTransactionController

import org.apache.jmeter.control.TransactionController; //导入方法依赖的package包/类
/**
 * Helper method to add a Transaction Controller to contain the samplers.
 * Called from Application Thread that needs to update GUI (JMeterTreeModel)
 * @param model
 *            Test component tree model
 * @param node
 *            Node in the tree where we will add the Controller
 * @param name
 *            A name for the Controller
 * @throws InvocationTargetException
 * @throws InterruptedException
 */
private void addTransactionController(final JMeterTreeModel model, final JMeterTreeNode node, String name)
        throws InterruptedException, InvocationTargetException {
    final TransactionController sc = new TransactionController();
    sc.setIncludeTimers(false);
    sc.setProperty(TestElement.GUI_CLASS, TRANSACTION_CONTROLLER_GUI);
    sc.setName(name);
    JMeterUtils.runSafe(new Runnable() {
        @Override
        public void run() {
             try {
                model.addComponent(sc, node);
            } catch (IllegalUserActionException e) {
                log.error("Program error", e);
                throw new Error(e);
            }
        }
    });
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:31,代码来源:ProxyControl.java

示例2: initilizeElement

import org.apache.jmeter.control.TransactionController; //导入方法依赖的package包/类
@Override
public TestElement initilizeElement() {
	TransactionController ele = new TransactionController();
	this.baseElement(ele, "Transaction Controller");
	
	ele.setGenerateParentSample(false);
	ele.setIncludeTimers(false);
	
	return ele;
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:11,代码来源:TransactionControllerInitializer.java

示例3: modifyTestElement

import org.apache.jmeter.control.TransactionController; //导入方法依赖的package包/类
@Override
public void modifyTestElement(TestElement el) {
    configureTestElement(el);
    ((TransactionController) el).setParent(parent.isSelected());
    TransactionController tc = ((TransactionController) el);
    tc.setParent(parent.isSelected());
    tc.setIncludeTimers(includeTimers.isSelected());
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:9,代码来源:TransactionControllerGui.java


注:本文中的org.apache.jmeter.control.TransactionController.setIncludeTimers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。