Apache JMeter
2.0.1.20050615

org.apache.jmeter.protocol.java.sampler
Class BSFSampler

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.samplers.AbstractSampler
          extended byorg.apache.jmeter.protocol.java.sampler.BSFSampler
All Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement

public class BSFSampler
extends AbstractSampler

A sampler which understands BSF

Version:
$Revision: 1.5 $ Updated on: $Date: 2004/03/13 19:45:46 $
See Also:
Serialized Form

Field Summary
static String FILENAME
           
static String LANGUAGE
           
protected static org.apache.log.Logger log
           
static String PARAMETERS
           
static String SCRIPT
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
BSFSampler()
           
 
Method Summary
 String getFilename()
           
 String getLabel()
          Returns a formatted string label describing this sampler
 String getParameters()
           
 String getScript()
           
 String getScriptLanguage()
           
 SampleResult sample(Entry e)
          Obtains statistics about the given Entry, and packages the information into a SampleResult.
 void setFilename(String newFilename)
           
 void setParameters(String newScript)
           
 void setScript(String newScript)
           
 void setScriptLanguage(String lang)
           
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, 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
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
 

Field Detail

log

protected static org.apache.log.Logger log

FILENAME

public static final String FILENAME
See Also:
Constant Field Values

SCRIPT

public static final String SCRIPT
See Also:
Constant Field Values

LANGUAGE

public static final String LANGUAGE
See Also:
Constant Field Values

PARAMETERS

public static final String PARAMETERS
See Also:
Constant Field Values
Constructor Detail

BSFSampler

public BSFSampler()
Method Detail

getFilename

public String getFilename()

setFilename

public void setFilename(String newFilename)

getScript

public String getScript()

setScript

public void setScript(String newScript)

getParameters

public String getParameters()

setParameters

public void setParameters(String newScript)

getScriptLanguage

public String getScriptLanguage()

setScriptLanguage

public void setScriptLanguage(String lang)

getLabel

public String getLabel()
Returns a formatted string label describing this sampler

Returns:
a formatted string label describing this sampler

sample

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


Apache JMeter
2.0.1.20050615

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