org.apache.jmeter.control

Class TransactionController

Implemented Interfaces:
Cloneable, Controller, SampleListener, Serializable, TestElement

public class TransactionController
extends GenericController
implements SampleListener, Controller, Serializable

Transaction Controller to measure transaction times There are two different modes for the controller: - generate additional total sample after nested samples (as in JMeter 2.2) - generate parent sampler containing the nested samples

Field Summary

Fields inherited from class org.apache.jmeter.control.GenericController

current, subControllersAndSamplers

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

TransactionController()
Creates a Transaction Controller

Method Summary

boolean
isParent()
Sampler
next()
protected Sampler
nextIsAController(Controller controller)
void
sampleOccurred(SampleEvent se)
A sample has started and stopped.
void
sampleStarted(SampleEvent e)
A sample has started.
void
sampleStopped(SampleEvent e)
A sample has stopped.
void
setParent(boolean _parent)

Methods inherited from class org.apache.jmeter.control.GenericController

addIterationListener, addTestElement, currentReturnedNull, fireIterEvents, fireIterationStart, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, isDone, isFirst, next, nextIsAController, nextIsASampler, nextIsNull, reInitialize, removeCurrentElement, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Constructor Details

TransactionController

public TransactionController()
Creates a Transaction Controller

Method Details

isParent

public boolean isParent()

next

public Sampler next()
Specified by:
next in interface Controller
Overrides:
next in interface GenericController

nextIsAController

protected Sampler nextIsAController(Controller controller)
            throws NextIsNullException
Overrides:
nextIsAController in interface GenericController

sampleOccurred

public void sampleOccurred(SampleEvent se)
A sample has started and stopped.
Specified by:
sampleOccurred in interface SampleListener

sampleStarted

public void sampleStarted(SampleEvent e)
A sample has started.
Specified by:
sampleStarted in interface SampleListener

sampleStopped

public void sampleStopped(SampleEvent e)
A sample has stopped.
Specified by:
sampleStopped in interface SampleListener

setParent

public void setParent(boolean _parent)

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.