|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.scenario.tools.components.ComponentManager
org.objectweb.cjdbc.scenario.tools.components.backend.DatabaseManager
This class defines a DatabaseManager
Field Summary | |
static int |
HSQLDB
HSQLDB processes selection |
static int |
MYSQL
MYSQL processes selection |
private int |
selection
|
Fields inherited from class org.objectweb.cjdbc.scenario.tools.components.ComponentManager |
processes |
Constructor Summary | |
DatabaseManager()
Creates a new DatabaseManager object |
|
DatabaseManager(int selection)
Creates a new DatabaseManager object |
Method Summary | |
java.lang.String |
getDefaultConfigurationFile()
The default configuration file to use with this component manager. |
ComponentInterface |
instanciateProcess(java.lang.String port,
java.lang.String database)
Instaciate a process managed by this component manager on the given port |
void |
stopAll()
Stops all process contained in this manager |
Methods inherited from class org.objectweb.cjdbc.scenario.tools.components.ComponentManager |
instanciateProcess, isStarted, loaddatabase, loaddatabase, loaddatabase, release, simulateFailure, simulateFailure, start, start, startComponent, startComponent, stop, stop, stop, waitForStarted, waitForStopped |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int HSQLDB
public static final int MYSQL
private int selection
Constructor Detail |
public DatabaseManager()
DatabaseManager
object
public DatabaseManager(int selection)
DatabaseManager
object
selection
- the process that this database manager will generateMethod Detail |
public ComponentInterface instanciateProcess(java.lang.String port, java.lang.String database) throws java.lang.Exception
ComponentManager
instanciateProcess
in interface ComponentManagerInterface
instanciateProcess
in class ComponentManager
port
- port to start the process ondatabase
- used to instanciate the process
java.lang.Exception
- if failsComponentManager.instanciateProcess(java.lang.String,
java.lang.String)
public java.lang.String getDefaultConfigurationFile()
ComponentManager
getDefaultConfigurationFile
in interface ComponentManagerInterface
getDefaultConfigurationFile
in class ComponentManager
ComponentManager.getDefaultConfigurationFile()
public void stopAll()
ComponentManager
stopAll
in interface ComponentManagerInterface
stopAll
in class ComponentManager
In Linux, also kills hypersonic processes
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |