Apache JMeter
1.9

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

Field Summary
static String CONNECTIONS
           
static String DRIVER
           
static String MAXUSE
           
static String QUERY
           
static String URL
           
 
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement
log
 
Fields inherited from interface org.apache.jmeter.samplers.Sampler
HEADER
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
JDBCSampler()
          Creates a JDBCSampler.
 
Method Summary
 String getDriver()
           
 int getMaxUse()
           
 int getNumConnections()
           
 String getPassword()
           
 String getQuery()
           
 String getUrl()
           
 String getUsername()
           
 SampleResult sample(Entry e)
          Obtains statistics about the given Entry, and packages the information into a SampleResult.
 void testEnded()
           
 void testEnded(String host)
           
 void testIterationStart(LoopIterationEvent event)
          Each time through a Thread Group's test script, an iteration event is fired.
 void testStarted()
           
 void testStarted(String host)
           
 String toString()
           
 
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 class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

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
Constructor Detail

JDBCSampler

public JDBCSampler()
Creates a JDBCSampler.

Method Detail

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 -

Apache JMeter
1.9

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