Apache JMeter
2.0.1.20050615

org.apache.jmeter.examples.testbeans.example1
Class Example1

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.testbeans.TestBean
          extended byorg.apache.jmeter.examples.testbeans.example1.Example1
All Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement

public class Example1
extends TestBean
implements Sampler

This TestBean is just an example about how to write testbeans. The intent is to demonstrate usage of the TestBean features to podential TestBean developers. Note that only the class's introspector view matters: the methods do nothing -- nothing useful, in any case.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
Example1()
           
 
Method Summary
 String getMyStringProperty()
           
 String[] getMyStrings()
           
 SampleResult sample(Entry e)
          Obtains statistics about the given Entry, and packages the information into a SampleResult.
 void setMyStringProperty(String s)
           
 void setMyStrings(String[] s)
           
 
Methods inherited from class org.apache.jmeter.testbeans.TestBean
addProperty, addTestElement, clear, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, prepare, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
canRemove, getThreadContext, getThreadName, setThreadContext, setThreadName, threadFinished, threadStarted
 
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
addTestElement, canRemove, clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse
 

Constructor Detail

Example1

public Example1()
Method Detail

sample

public SampleResult sample(Entry e)
Description copied from interface: Sampler
Obtains statistics about the given Entry, and packages the information into a SampleResult.

Specified by:
sample in interface Sampler

setMyStringProperty

public void setMyStringProperty(String s)

getMyStringProperty

public String getMyStringProperty()

setMyStrings

public void setMyStrings(String[] s)

getMyStrings

public String[] getMyStrings()

Apache JMeter
2.0.1.20050615

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