1 24 25 package org.objectweb.cjdbc.scenario.tools.components; 26 27 39 public interface ComponentManagerInterface 40 { 41 50 ComponentInterface instanciateProcess(String port) throws Exception ; 51 52 60 ComponentInterface instanciateProcess(String port, String configurationFile) 61 throws Exception ; 62 63 69 String getDefaultConfigurationFile(); 70 71 79 ComponentInterface startComponent(String port, String database) 80 throws Exception ; 81 82 89 ComponentInterface startComponent(String port) throws Exception ; 90 91 97 void waitForStarted(String port) throws Exception ; 98 99 105 void waitForStopped(String port) throws Exception ; 106 107 113 boolean isStarted(String port); 114 115 121 void loaddatabase(String port) throws Exception ; 122 123 130 void loaddatabase(String port, String templateName) throws Exception ; 131 132 137 void stop(ComponentInterface process); 138 139 144 void stop(String componentOnPort); 145 146 151 void stop(int port); 152 153 161 void simulateFailure(String port, long wait, boolean rand); 162 163 171 void simulateFailure(int port, long wait, boolean rand); 172 173 176 void stopAll(); 177 178 186 ComponentInterface start(String port, String database) throws Exception ; 187 188 195 ComponentInterface start(String port) throws Exception ; 196 197 200 void release(); 201 } | Popular Tags |