A sampler which understands JDBC database requests.
close
public static void close(Connection c)
close
public static void close(ResultSet rs)
close
public static void close(Statement s)
getDataSource
public String getDataSource()
getQuery
public String getQuery()
getQueryArguments
public String getQueryArguments()
getQueryArgumentsTypes
public String getQueryArgumentsTypes()
getQueryType
public String getQueryType()
getVariableNames
public String getVariableNames()
sample
public SampleResult sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
- sample in interface Sampler
setDataSource
public void setDataSource(String dataSource)
dataSource
- The dataSource to set.
setQuery
public void setQuery(String query)
query
- The query to set.
setQueryArguments
public void setQueryArguments(String queryArguments)
setQueryArgumentsTypes
public void setQueryArgumentsTypes(String queryArgumentsType)
setQueryType
public void setQueryType(String queryType)
queryType
- The queryType to set.
setVariableNames
public void setVariableNames(String variableNames)
variableNames
- the variableNames to set
toString
public String toString()