1 24 25 package org.objectweb.cjdbc.scenario.tools.components.controller; 26 27 import org.objectweb.cjdbc.controller.core.Controller; 28 import org.objectweb.cjdbc.scenario.tools.ScenarioConstants; 29 import org.objectweb.cjdbc.scenario.tools.components.ComponentInterface; 30 import org.objectweb.cjdbc.scenario.tools.components.ComponentManager; 31 32 38 public class ControllerManager extends ComponentManager 39 { 40 43 public String getDefaultConfigurationFile() 44 { 45 return ScenarioConstants.DATABASE_CONFIG_FILE; 46 } 47 50 public ComponentInterface instanciateProcess(String port, String configurationFile) 51 throws Exception 52 { 53 return new ControllerProcess(port,configurationFile); 54 } 55 56 65 public void loadVirtualDatabases(Controller controller,String vdb,String file) throws Exception 66 { 67 ((ComponentInterface) processes.get(""+controller.getPortNumber())).loadDatabase(file,vdb); 68 } 69 } | Popular Tags |