org.objectweb.cjdbc.scenario.tools.components.controller
Class ControllerManager
java.lang.Object
org.objectweb.cjdbc.scenario.tools.components.ComponentManager
org.objectweb.cjdbc.scenario.tools.components.controller.ControllerManager
- All Implemented Interfaces:
- ComponentManagerInterface
- public class ControllerManager
- extends ComponentManager
This class defines a ControllerManager
- Version:
- 1.0
- Author:
- Emmanuel Cecchet
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, stopAll, waitForStarted, waitForStopped |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerManager
public ControllerManager()
getDefaultConfigurationFile
public java.lang.String getDefaultConfigurationFile()
- Description copied from class:
ComponentManager
- The default configuration file to use with this component manager.
This should be specific to each component manager
- Specified by:
getDefaultConfigurationFile
in interface ComponentManagerInterface
- Specified by:
getDefaultConfigurationFile
in class ComponentManager
- Returns:
- the default filename
- See Also:
ComponentManager.getDefaultConfigurationFile()
instanciateProcess
public ComponentInterface instanciateProcess(java.lang.String port,
java.lang.String configurationFile)
throws java.lang.Exception
- Description copied from class:
ComponentManager
- Instaciate a process managed by this component manager on the given port
- Specified by:
instanciateProcess
in interface ComponentManagerInterface
- Specified by:
instanciateProcess
in class ComponentManager
- Parameters:
port
- port to start the process onconfigurationFile
- used to instanciate the process
- Returns:
- a reference to the newly started component
- Throws:
java.lang.Exception
- if fails- See Also:
ComponentManager.instanciateProcess(java.lang.String, java.lang.String)
loadVirtualDatabases
public void loadVirtualDatabases(Controller controller,
java.lang.String vdb,
java.lang.String file)
throws java.lang.Exception
- This loads virtual database on the given contoller
- Parameters:
controller
- to load the database intovdb
- the virtual db name to loadfile
- the template to use
- Throws:
java.lang.Exception
- if fails
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.