org.apache.jmeter.control
Class ThroughputController
java.lang.Object
|
+--org.apache.jmeter.testelement.AbstractTestElement
|
+--org.apache.jmeter.control.GenericController
|
+--org.apache.jmeter.control.ThroughputController
- All Implemented Interfaces:
- Cloneable, Controller, LoopIterationListener, Serializable, TestElement, TestListener
- public class ThroughputController
- extends GenericController
- implements Serializable, LoopIterationListener, TestListener
- Author:
- Thad Smith
This class represents a controller that can controll the
number of times that it is executed, either by the total number
of times the user wants the controller executed (BYNUMBER)
or by the percentage of time it is called (BYPERCENT)
- See Also:
- Serialized Form
Methods inherited from class org.apache.jmeter.control.GenericController |
addIterationListener, addTestElement, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, isFirst, main, nextIsAController, nextIsASampler, nextIsNull, removeCurrentElement, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst, suite |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, clear, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
clear, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, traverse |
BYNUMBER
public static final int BYNUMBER
- See Also:
- Constant Field Values
BYPERCENT
public static final int BYPERCENT
- See Also:
- Constant Field Values
ThroughputController
public ThroughputController()
reInitialize
public void reInitialize()
- Overrides:
reInitialize
in class GenericController
setStyle
public void setStyle(int style)
getStyle
public int getStyle()
setPerThread
public void setPerThread(boolean perThread)
isPerThread
public boolean isPerThread()
setMaxThroughput
public void setMaxThroughput(int maxThroughput)
setMaxThroughput
public void setMaxThroughput(String maxThroughput)
getMaxThroughput
public String getMaxThroughput()
getMaxThroughputAsInt
protected int getMaxThroughputAsInt()
setPercentThroughput
public void setPercentThroughput(float percentThroughput)
setPercentThroughput
public void setPercentThroughput(String percentThroughput)
getPercentThroughput
public String getPercentThroughput()
getPercentThroughputAsFloat
protected float getPercentThroughputAsFloat()
setExecutions
protected void setExecutions(int executions)
getExecutions
protected int getExecutions()
setIteration
protected void setIteration(int iteration)
getIteration
protected int getIteration()
next
public Sampler next()
- Description copied from interface:
Controller
- Delivers the next Sampler.
- Specified by:
next
in interface Controller
- Overrides:
next
in class GenericController
- See Also:
Controller.next()
canExecute
protected boolean canExecute()
isDone
public boolean isDone()
- Description copied from interface:
Controller
- Indicates whether the Controller is done delivering Samplers for
the rest of the test.
- Specified by:
isDone
in interface Controller
- Overrides:
isDone
in class GenericController
- See Also:
Controller.isDone()
clone
public Object clone()
- Specified by:
clone
in interface TestElement
- Overrides:
clone
in class AbstractTestElement
iterationStart
public void iterationStart(LoopIterationEvent iterEvent)
- Specified by:
iterationStart
in interface LoopIterationListener
testStarted
public void testStarted()
- Specified by:
testStarted
in interface TestListener
testEnded
public void testEnded()
- Specified by:
testEnded
in interface TestListener
testStarted
public void testStarted(String host)
- Specified by:
testStarted
in interface TestListener
testEnded
public void testEnded(String host)
- Specified by:
testEnded
in interface TestListener
testIterationStart
public void testIterationStart(LoopIterationEvent event)
- Description copied from interface:
TestListener
- Each time through a Thread Group's test script, an iteration event is
fired.
- Specified by:
testIterationStart
in interface TestListener
- Parameters:
event
-
Copyright © 1998-2003 Apache Software Foundation. All Rights Reserved.