org.apache.jmeter.protocol.jdbc.config

Class DataSourceElement

Implemented Interfaces:
Cloneable, ConfigElement, Serializable, TestBean, TestElement, TestListener

public class DataSourceElement
extends AbstractTestElement
implements ConfigElement, TestListener, TestBean

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)
Object
clone()
boolean
expectsModification()
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()
void
testEnded(String host)
void
testIterationStart(LoopIterationEvent event)
void
testStarted()
void
testStarted(String host)

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Constructor Details

DataSourceElement

public DataSourceElement()

Method Details

addConfigElement

public void addConfigElement(ConfigElement config)
Specified by:
addConfigElement in interface ConfigElement

clone

public Object clone()
Specified by:
clone in interface ConfigElement
clone in interface TestElement
Overrides:
clone in interface AbstractTestElement

expectsModification

public boolean expectsModification()
Specified by:
expectsModification in interface ConfigElement

getCheckQuery

public String getCheckQuery()
Returns:
Returns the checkQuery.

getConnection

public static Connection getConnection(String poolName)
            throws SQLException

getConnectionAge

public String getConnectionAge()
Returns:
Returns the connectionAge.

getDataSource

public String getDataSource()
Returns:
Returns the poolname.

getDbUrl

public String getDbUrl()
Returns:
Returns the dbUrl.

getDriver

public String getDriver()
Returns:
Returns the driver.

getPassword

public String getPassword()
Returns:
Returns the password.

getPoolMax

public String getPoolMax()
Returns:
Returns the poolMax.

getTimeout

public String getTimeout()
Returns:
Returns the timeout.

getTrimInterval

public String getTrimInterval()
Returns:
Returns the trimInterval.

getUsername

public String getUsername()
Returns:
Returns the username.

isAutocommit

public boolean isAutocommit()
Returns:
Returns the autocommit.

isKeepAlive

public boolean isKeepAlive()
Returns:
Returns the keepAlive.

setAutocommit

public void setAutocommit(boolean autocommit)
Parameters:
autocommit - The autocommit to set.

setCheckQuery

public void setCheckQuery(String checkQuery)
Parameters:
checkQuery - The checkQuery to set.

setConnectionAge

public void setConnectionAge(String connectionAge)
Parameters:
connectionAge - The connectionAge to set.

setDataSource

public void setDataSource(String dataSource)
Parameters:
dataSource - The poolname to set.

setDbUrl

public void setDbUrl(String dbUrl)
Parameters:
dbUrl - The dbUrl to set.

setDriver

public void setDriver(String driver)
Parameters:
driver - The driver to set.

setKeepAlive

public void setKeepAlive(boolean keepAlive)
Parameters:
keepAlive - The keepAlive to set.

setPassword

public void setPassword(String password)
Parameters:
password - The password to set.

setPoolMax

public void setPoolMax(String poolMax)
Parameters:
poolMax - The poolMax to set.

setTimeout

public void setTimeout(String timeout)
Parameters:
timeout - The timeout to set.

setTrimInterval

public void setTrimInterval(String trimInterval)
Parameters:
trimInterval - The trimInterval to set.

setUsername

public void setUsername(String username)
Parameters:
username - The username to set.

testEnded

public void testEnded()
Specified by:
testEnded in interface TestListener

testEnded

public void testEnded(String host)
Specified by:
testEnded in interface TestListener

testIterationStart

public void testIterationStart(LoopIterationEvent event)
Specified by:
testIterationStart in interface TestListener

testStarted

public void testStarted()
Specified by:
testStarted in interface TestListener

testStarted

public void testStarted(String host)
Specified by:
testStarted in interface TestListener

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