|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.protocol.jdbc.config.DataSourceElement
| Field Summary |
| Fields inherited from interface org.apache.jmeter.testelement.TestElement |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
| Constructor Summary | |
DataSourceElement()
|
|
| Method Summary | |
void |
addConfigElement(ConfigElement config)
Add a configuration element to this one. |
Object |
clone()
|
boolean |
expectsModification()
If your config element expects to be modified in the process of a test run, and you want those modifications to carry over from sample to sample (as in a cookie manager - you want to save all cookies that get set throughout the test), then return true for this method. |
String |
getCheckQuery()
|
static Connection |
getConnection(String poolName)
|
String |
getConnectionAge()
|
String |
getDataSource()
|
String |
getDbUrl()
|
String |
getDriver()
|
String |
getPassword()
|
String |
getPoolMax()
|
String |
getTimeout()
|
String |
getTrimInterval()
|
String |
getUsername()
|
boolean |
isAutocommit()
|
boolean |
isKeepAlive()
|
void |
setAutocommit(boolean autocommit)
|
void |
setCheckQuery(String checkQuery)
|
void |
setConnectionAge(String connectionAge)
|
void |
setDataSource(String dataSource)
|
void |
setDbUrl(String dbUrl)
|
void |
setDriver(String driver)
|
void |
setKeepAlive(boolean keepAlive)
|
void |
setPassword(String password)
|
void |
setPoolMax(String poolMax)
|
void |
setTimeout(String timeout)
|
void |
setTrimInterval(String trimInterval)
|
void |
setUsername(String username)
|
void |
testEnded()
Called once for all threads after the end of a test. |
void |
testEnded(String host)
Called once for all threads after the end of a test. |
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is fired for each thread. |
void |
testStarted()
Called just before the start of the test from the main engine thread. |
void |
testStarted(String host)
Called just before the start of the test from the main engine thread. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataSourceElement()
| Method Detail |
public void testEnded()
TestListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestListenerStandardJMeterEngine.stopTest()public void testEnded(String host)
TestListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestListenerStandardJMeterEngine.stopTest()public void testIterationStart(LoopIterationEvent event)
TestListener
testIterationStart in interface TestListenerevent - public void testStarted()
TestListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestListenerStandardJMeterEngine.run()public void testStarted(String host)
TestListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestListenerStandardJMeterEngine.run()public Object clone()
clone in interface ConfigElementclone in class AbstractTestElement
public static Connection getConnection(String poolName)
throws SQLException
SQLExceptionpublic void addConfigElement(ConfigElement config)
ConfigElement
addConfigElement in interface ConfigElementconfig - the element to be added to this ConfigElementpublic boolean expectsModification()
ConfigElement
expectsModification in interface ConfigElementpublic String getCheckQuery()
public void setCheckQuery(String checkQuery)
checkQuery - The checkQuery to set.public String getConnectionAge()
public void setConnectionAge(String connectionAge)
connectionAge - The connectionAge to set.public String getDataSource()
public void setDataSource(String dataSource)
dataSource - The poolname to set.public String getDbUrl()
public void setDbUrl(String dbUrl)
dbUrl - The dbUrl to set.public String getDriver()
public void setDriver(String driver)
driver - The driver to set.public String getPassword()
public void setPassword(String password)
password - The password to set.public String getPoolMax()
public void setPoolMax(String poolMax)
poolMax - The poolMax to set.public String getTimeout()
public void setTimeout(String timeout)
timeout - The timeout to set.public String getTrimInterval()
public void setTrimInterval(String trimInterval)
trimInterval - The trimInterval to set.public String getUsername()
public void setUsername(String username)
username - The username to set.public boolean isAutocommit()
public void setAutocommit(boolean autocommit)
autocommit - The autocommit to set.public boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive - The keepAlive to set.
|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||