org.objectweb.cjdbc.scenario.tools.components.controller
Class ControllerManager

java.lang.Object
  extended byorg.objectweb.cjdbc.scenario.tools.components.ComponentManager
      extended byorg.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

Field Summary
 
Fields inherited from class org.objectweb.cjdbc.scenario.tools.components.ComponentManager
processes
 
Constructor Summary
ControllerManager()
           
 
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 configurationFile)
          Instaciate a process managed by this component manager on the given port
 void loadVirtualDatabases(Controller controller, java.lang.String vdb, java.lang.String file)
          This loads virtual database on the given contoller
 
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
 

Constructor Detail

ControllerManager

public ControllerManager()
Method Detail

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 on
configurationFile - 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 into
vdb - the virtual db name to load
file - the template to use
Throws:
java.lang.Exception - if fails


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.