org.apache.jmeter.protocol.jdbc.sampler
Class JDBCSampler
java.lang.Object
|
+--org.apache.jmeter.testelement.AbstractTestElement
|
+--org.apache.jmeter.samplers.AbstractSampler
|
+--org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler
- All Implemented Interfaces:
- Cloneable, Sampler, Serializable, TestElement, TestListener
- public class JDBCSampler
- extends AbstractSampler
- implements TestListener
A sampler which understands JDBC database requests
- Version:
- $Revision: 1.19 $
- Author:
- $Author: jeremy_a $
- See Also:
- Serialized Form
Fields inherited from interface org.apache.jmeter.samplers.Sampler |
HEADER |
Constructor Summary |
JDBCSampler()
Creates a JDBCSampler. |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
addTestElement, clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, traverse |
URL
public static final String URL
- See Also:
- Constant Field Values
DRIVER
public static final String DRIVER
- See Also:
- Constant Field Values
CONNECTIONS
public static String CONNECTIONS
MAXUSE
public static String MAXUSE
QUERY
public static final String QUERY
- See Also:
- Constant Field Values
JDBCSampler
public JDBCSampler()
- Creates a JDBCSampler.
testStarted
public void testStarted(String host)
- Specified by:
testStarted
in interface TestListener
testEnded
public void testEnded(String host)
- Specified by:
testEnded
in interface TestListener
testStarted
public void testStarted()
- Specified by:
testStarted
in interface TestListener
testEnded
public void testEnded()
- Specified by:
testEnded
in interface TestListener
getQuery
public String getQuery()
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
getUrl
public String getUrl()
getUsername
public String getUsername()
getPassword
public String getPassword()
getDriver
public String getDriver()
getMaxUse
public int getMaxUse()
getNumConnections
public int getNumConnections()
toString
public String toString()
- Overrides:
toString
in class Object
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.