|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.objectweb.cjdbc.requestplayer.RequestPlayerProperties
Checks and gets all properties needed by the request player tools.
Nested Class Summary |
Nested classes inherited from class java.util.Hashtable |
|
Field Summary | |
private java.io.File |
configFile
Configuration file. |
private int |
connectionType
Connection management type used in client emulator: standard, fixed or pooling. |
private java.lang.String |
databaseDriver
Database driver. |
private java.lang.String |
databaseLogin
Database login. |
private java.lang.String |
databasePassword
Database password. |
private java.lang.String |
databaseUrl
Database URL. |
static java.lang.String |
DEFAULT_CONFIG_FILE
Default Request player configuration file. |
static int |
FIXED_CONNECTION
Optimized connection management type. |
private int |
nbClients
Number of clients to run in parallel to issue the requests. |
private int |
nbRequests
How many requests from the trace file should be executed (0 means the whole trace is executed). |
static int |
POOLING_CONNECTION
Pooling connection management type. |
private int |
poolSize
Connection pool size. |
static int |
STANDARD_CONNECTION
Standard connection management type. |
private int |
timeout
Request timeout in seconds (0 means no timeout). |
private java.lang.String |
traceFile
Trace file. |
Fields inherited from class java.util.Properties |
defaults |
Fields inherited from class java.util.Hashtable |
|
Constructor Summary | |
RequestPlayerProperties(java.lang.String configFileString)
Creates a new RequestPlayerProperties instance. |
Method Summary | |
boolean |
checkPropertiesFile()
Checks for all needed fields in requestplayer.properties
and initialize corresponding values. |
int |
getConnectionType()
Returns the connection type. |
java.lang.String |
getDatabaseDriver()
Gets the database driver class name for the SQL database. |
java.lang.String |
getDatabasePassword()
Gets the password for the SQL database |
java.lang.String |
getDatabaseURL()
Gets the database URL for the SQL database. |
java.lang.String |
getDatabaseUsername()
Gets the login for the SQL database. |
int |
getNbClients()
Returns the number of clients to run in parallel to issue the requests. |
int |
getNbRequests()
Gets the number of requests to execute from the trace file (0 means the whole trace is executed). |
int |
getPoolSize()
Returns the connection pool size. |
int |
getTimeout()
Returns the request timeout in seconds (0 means no timeout). |
java.lang.String |
getTraceFile()
Gets the trace file. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_CONFIG_FILE
public static final int STANDARD_CONNECTION
public static final int FIXED_CONNECTION
public static final int POOLING_CONNECTION
private java.io.File configFile
DEFAULT_CONFIG_FILE
.
private java.lang.String traceFile
private int nbRequests
private int nbClients
private int timeout
private java.lang.String databaseDriver
private java.lang.String databaseUrl
private java.lang.String databaseLogin
private java.lang.String databasePassword
private int connectionType
private int poolSize
Constructor Detail |
public RequestPlayerProperties(java.lang.String configFileString)
RequestPlayerProperties
instance. If the
given configuration file cannot be read or if the
DEFAULT_CONFIG_FILE
file is not found in the classpath, the
current thread is killed.
configFileString
- configuration file or null
if the
default file must be used.Method Detail |
public boolean checkPropertiesFile()
requestplayer.properties
and initialize corresponding values.
true
if sopublic java.lang.String getTraceFile()
public int getNbRequests()
public java.lang.String getDatabaseURL()
public java.lang.String getDatabaseDriver()
public java.lang.String getDatabaseUsername()
public java.lang.String getDatabasePassword()
public int getNbClients()
public int getConnectionType()
public int getPoolSize()
public int getTimeout()
int
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |