|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ca.cbc.sportwire.JdbcBench
JdbcBench.java:
Created: Sat Feb 23 13:57:31 2002
$Log$
Field Summary | |
private int |
batch
|
(package private) static org.apache.log4j.Category |
cat
Set up a reporting category in Log4J |
private int |
clients
|
private org.apache.commons.collections.ExtendedProperties |
config
|
(package private) static java.lang.String |
FETCH
|
private int |
loops
|
private java.lang.String |
pid
|
private java.lang.String |
sql
|
(package private) static java.lang.String |
UPDATE
|
Constructor Summary | |
JdbcBench(java.lang.String conf)
|
|
JdbcBench(java.lang.String conf,
java.lang.String pid)
|
Method Summary | |
int |
getBatch()
Get the value of batch. |
int |
getClients()
Get the value of clients. |
org.apache.commons.collections.ExtendedProperties |
getConfig()
Get the value of config. |
int |
getLoops()
Get the value of loops. |
java.lang.String |
getPid()
Get the value of pid. |
java.lang.String |
getSql()
Get the value of sql. |
private void |
loadProperties(java.lang.String conf)
|
static void |
main(java.lang.String[] args)
|
void |
noBallot()
|
void |
run()
|
void |
runBallot()
|
void |
setBatch(int v)
Set the value of batch. |
void |
setClients(int v)
Set the value of clients. |
void |
setConfig(org.apache.commons.collections.ExtendedProperties v)
Set the value of config. |
private static void |
setLogging(boolean debug)
setLogging loads filters and appenders from the
property file specified by wirefeeder.log4j.conf. |
void |
setLoops(int v)
Set the value of loops. |
void |
setPid(java.lang.String v)
Set the value of pid. |
void |
setSql(java.lang.String v)
Set the value of sql. |
void |
test()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
static org.apache.log4j.Category cat
static final java.lang.String FETCH
static final java.lang.String UPDATE
private org.apache.commons.collections.ExtendedProperties config
private int batch
private int loops
private int clients
private java.lang.String sql
private java.lang.String pid
Constructor Detail |
public JdbcBench(java.lang.String conf) throws java.io.IOException
public JdbcBench(java.lang.String conf, java.lang.String pid) throws java.io.IOException
Method Detail |
public org.apache.commons.collections.ExtendedProperties getConfig()
public void setConfig(org.apache.commons.collections.ExtendedProperties v)
v
- Value to assign to config.private void loadProperties(java.lang.String conf) throws java.io.IOException
public int getBatch()
public void setBatch(int v)
v
- Value to assign to batch.public int getLoops()
public void setLoops(int v)
v
- Value to assign to loops.public int getClients()
public void setClients(int v)
v
- Value to assign to clients.public java.lang.String getSql()
public void setSql(java.lang.String v)
v
- Value to assign to sql.public void test() throws java.io.IOException
public void run()
run
in interface java.lang.Runnable
public java.lang.String getPid()
public void setPid(java.lang.String v)
v
- Value to assign to pid.public void runBallot()
public void noBallot()
private static void setLogging(boolean debug)
setLogging
loads filters and appenders from the
property file specified by wirefeeder.log4j.conf.
If debug
is false, messages below WARN
priority will be suppressed. This can be undone in a
production releasey through the
log4j.disableOverride
property.public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Javadocs generated Tue Apr 23 01:08:36 EDT 2002 by garym@maya.dyndns.org
Copyright © 2002 Canadian Broadcasting Corp