Apache JMeter
2.0.1.20050615

org.apache.jmeter.control
Class ModuleController

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.control.GenericController
          extended byorg.apache.jmeter.control.ModuleController
All Implemented Interfaces:
Cloneable, Controller, ReplaceableController, Serializable, TestElement

public class ModuleController
extends GenericController
implements ReplaceableController

The goal of ModuleController is to add modularity to JMeter. The general idea is that web applications consist of small units of functionality (i.e. Logon, Create Account, Logoff...) which consist of requests that implement the functionality. These small units of functionality can be stored in SimpleControllers as modules that can be linked together quickly to form tests. ModuleController facilitates this by acting as a pointer to any controller that sits under the WorkBench. The controller and it's subelements will be substituted in place of the ModuleController at runtime. Config elements can be attached to the ModuleController to alter the functionality (which user logs in, which account is created, etc.) of the module.

Version:
$Revision: 1.7 $
Author:
Thad Smith
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.jmeter.control.GenericController
GenericController.Test
 
Field Summary
 
Fields inherited from class org.apache.jmeter.control.GenericController
current, iterationListeners, subControllersAndSamplers
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
ModuleController()
          No-arg constructor
 
Method Summary
 Object clone()
           
 TestElement getReplacement()
          Get the controller which this object is "pointing" to.
 JMeterTreeNode getSelectedNode()
          Gets the (@link JMeterTreeNode) for the Controller
 void replace(HashTree tree)
          Copies the controller's subelements into the execution tree
 void setSelectedNode(JMeterTreeNode tn)
          Sets the (@link JMeterTreeNode) which represents the controller which this object is pointing to.
 
Methods inherited from class org.apache.jmeter.control.GenericController
addIterationListener, addTestElement, currentReturnedNull, fireIterationStart, fireIterEvents, 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, canRemove, clear, clearTemporary, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jmeter.testelement.TestElement
canRemove, clear, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse
 

Constructor Detail

ModuleController

public ModuleController()
No-arg constructor

See Also:
Object.Object()
Method Detail

clone

public Object clone()
Specified by:
clone in interface TestElement
Overrides:
clone in class AbstractTestElement

getReplacement

public TestElement getReplacement()
Get the controller which this object is "pointing" to.

Specified by:
getReplacement in interface ReplaceableController
Returns:
the controller which this node points to
See Also:
TestElement, ReplaceableController.getReplacement()

setSelectedNode

public void setSelectedNode(JMeterTreeNode tn)
Sets the (@link JMeterTreeNode) which represents the controller which this object is pointing to. Used for building the test case upon execution.

Parameters:
tn - JMeterTreeNode
See Also:
JMeterTreeNode

getSelectedNode

public JMeterTreeNode getSelectedNode()
Gets the (@link JMeterTreeNode) for the Controller

Returns:
JMeterTreeNode

replace

public void replace(HashTree tree)
Copies the controller's subelements into the execution tree

Specified by:
replace in interface ReplaceableController
Parameters:
tree - - The current tree under which the nodes will be added
See Also:
HashTree, AbstractAction.convertSubTree(org.apache.jorphan.collections.HashTree)

Apache JMeter
2.0.1.20050615

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