本文整理汇总了Java中org.apache.jmeter.engine.event.LoopIterationListener类的典型用法代码示例。如果您正苦于以下问题:Java LoopIterationListener类的具体用法?Java LoopIterationListener怎么用?Java LoopIterationListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LoopIterationListener类属于org.apache.jmeter.engine.event包,在下文中一共展示了LoopIterationListener类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: trackIterationListeners
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
private void trackIterationListeners(LinkedList<TestElement> pStack) {
TestElement child = pStack.getLast();
if (child instanceof LoopIterationListener) {
ListIterator<TestElement> iter = pStack.listIterator(pStack.size());
while (iter.hasPrevious()) {
TestElement item = iter.previous();
if (item == child) {
continue;
}
if (item instanceof Controller) {
TestBeanHelper.prepare(child);
((Controller) item).addIterationListener((LoopIterationListener) child);
break;
}
}
}
}
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:18,代码来源:TestCompiler.java
示例2: trackIterationListeners
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@SuppressWarnings("deprecation") // TestBeanHelper.prepare() is OK
private void trackIterationListeners(LinkedList<TestElement> p_stack) {
TestElement child = p_stack.getLast();
if (child instanceof LoopIterationListener) {
ListIterator<TestElement> iter = p_stack.listIterator(p_stack.size());
while (iter.hasPrevious()) {
TestElement item = iter.previous();
if (item == child) {
continue;
}
if (item instanceof Controller) {
TestBeanHelper.prepare(child);
((Controller) item).addIterationListener((LoopIterationListener) child);
break;
}
}
}
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:19,代码来源:TestCompiler.java
示例3: addIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@Override
public void addIterationListener(LoopIterationListener lis) {
/*
* A little hack - add each listener to the start of the list - this
* ensures that the thread running the show is the first listener and
* can modify certain values before other listeners are called.
*/
iterationListeners.addFirst(lis);
}
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:10,代码来源:GenericController.java
示例4: removeIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
/**
* Remove listener
*/
@Override
public void removeIterationListener(LoopIterationListener iterationListener) {
for (Iterator<LoopIterationListener> iterator = iterationListeners.iterator(); iterator.hasNext();) {
LoopIterationListener listener = iterator.next();
if(listener == iterationListener)
{
iterator.remove();
break; // can only match once
}
}
}
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:15,代码来源:GenericController.java
示例5: threadFinished
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
private void threadFinished(LoopIterationListener iterationListener) {
ThreadListenerTraverser shut = new ThreadListenerTraverser(false);
testTree.traverse(shut); // call ThreadListener.threadFinished()
JMeterContextService.decrNumberOfThreads();
threadGroup.decrNumberOfThreads();
if (iterationListener != null) { // probably not possible, but check anyway
threadGroupLoopController.removeIterationListener(iterationListener);
}
}
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:11,代码来源:JMeterThread.java
示例6: readResolve
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
protected Object readResolve(){
iterationListeners =
new LinkedList<LoopIterationListener>();
children =
TestCompiler.IS_USE_STATIC_SET ? null : new ConcurrentHashMap<TestElement, Object>();
subControllersAndSamplers =
new ArrayList<TestElement>();
return this;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:12,代码来源:GenericController.java
示例7: threadFinished
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
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
controller.removeIterationListener(iterationListener);
}
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:14,代码来源:JMeterThread.java
示例8: addIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@Override
public void addIterationListener(LoopIterationListener listener) {
helper.prepareBean();
wrapped.addIterationListener(listener);
}
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:6,代码来源:GenericControllerDebug.java
示例9: removeIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@Override
public void removeIterationListener(LoopIterationListener iterationListener) {
wrapped.removeIterationListener(iterationListener);
}
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:5,代码来源:GenericControllerDebug.java
示例10: iterationStart
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@Override
public void iterationStart(LoopIterationEvent iterEvent) {
if (wrapped instanceof LoopIterationListener) {
((LoopIterationListener) wrapped).iterationStart(iterEvent);
}
}
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:7,代码来源:GenericControllerDebug.java
示例11: addIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@Override
public void addIterationListener(LoopIterationListener listener) {
prepareBean();
wrapped.addIterationListener(listener);
}
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:6,代码来源:ControllerDebug.java
示例12: fireIterationStart
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
protected void fireIterationStart() {
LoopIterationEvent event = new LoopIterationEvent(this, getIterCount());
for (LoopIterationListener item : iterationListeners) {
item.iterationStart(event);
}
}
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:7,代码来源:GenericController.java
示例13: addIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void addIterationListener(LoopIterationListener lis) {
getSamplerController().addIterationListener(lis);
}
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:6,代码来源:AbstractThreadGroup.java
示例14: removeIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void removeIterationListener(LoopIterationListener iterationListener) {
getSamplerController().removeIterationListener(iterationListener);
}
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:6,代码来源:AbstractThreadGroup.java
示例15: addIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@Override
public void addIterationListener(LoopIterationListener listener) {
}
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:5,代码来源:ParallelSampler.java
示例16: removeIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
@Override
public void removeIterationListener(LoopIterationListener iterationListener) {
}
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:5,代码来源:ParallelSampler.java
示例17: addIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
/**
* Controllers have to notify listeners of when they begin an iteration
* through their sub-elements.
* @param listener The {@link LoopIterationListener} to add
*/
void addIterationListener(LoopIterationListener listener);
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:7,代码来源:Controller.java
示例18: removeIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
/**
* Unregister IterationListener
* @param iterationListener {@link LoopIterationListener}
*/
void removeIterationListener(LoopIterationListener iterationListener);
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:6,代码来源:Controller.java
示例19: addIterationListener
import org.apache.jmeter.engine.event.LoopIterationListener; //导入依赖的package包/类
/**
* Controllers have to notify listeners of when they begin an iteration
* through their sub-elements.
*/
void addIterationListener(LoopIterationListener listener);
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:6,代码来源:Controller.java
注:本文中的org.apache.jmeter.engine.event.LoopIterationListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论