1 17 package org.apache.geronimo.kernel.config; 18 19 import java.io.IOException ; 20 import java.util.List ; 21 import org.apache.geronimo.kernel.repository.Artifact; 22 import org.apache.geronimo.kernel.repository.ArtifactResolver; 23 import org.apache.geronimo.kernel.repository.Version; 24 import org.apache.geronimo.gbean.AbstractName; 25 26 54 public interface ConfigurationManager { 55 67 boolean isInstalled(Artifact configurationId); 68 69 79 boolean isLoaded(Artifact configurationId); 80 81 91 boolean isRunning(Artifact configurationId); 92 93 105 Artifact[] getInstalled(Artifact query); 106 107 117 Artifact[] getLoaded(Artifact query); 118 119 129 Artifact[] getRunning(Artifact query); 130 131 136 List listConfigurations(); 137 138 143 List listStores(); 144 145 148 ConfigurationStore[] getStores(); 149 150 161 ConfigurationStore getStoreForConfiguration(Artifact configuration); 162 163 172 List listConfigurations(AbstractName store) throws NoSuchStoreException; 173 174 183 boolean isConfiguration(Artifact artifact); 184 185 193 Configuration getConfiguration(Artifact configurationId); 194 195 209 LifecycleResults loadConfiguration(Artifact configurationId) throws NoSuchConfigException, LifecycleException; 210 211 224 LifecycleResults loadConfiguration(ConfigurationData configurationData) throws NoSuchConfigException, LifecycleException; 225 226 241 LifecycleResults loadConfiguration(Artifact configurationId, LifecycleMonitor monitor) throws NoSuchConfigException, LifecycleException; 242 243 257 LifecycleResults loadConfiguration(ConfigurationData configurationData, LifecycleMonitor monitor) throws NoSuchConfigException, LifecycleException; 258 259 273 LifecycleResults unloadConfiguration(Artifact configurationId) throws NoSuchConfigException; 274 275 291 LifecycleResults unloadConfiguration(Artifact configurationId, LifecycleMonitor monitor) throws NoSuchConfigException; 292 293 307 LifecycleResults startConfiguration(Artifact configurationId) throws NoSuchConfigException, LifecycleException; 308 309 324 LifecycleResults startConfiguration(Artifact configurationId, LifecycleMonitor monitor) throws NoSuchConfigException, LifecycleException; 325 326 338 LifecycleResults stopConfiguration(Artifact configurationId) throws NoSuchConfigException; 339 340 353 LifecycleResults stopConfiguration(Artifact configurationId, LifecycleMonitor monitor) throws NoSuchConfigException; 354 355 367 LifecycleResults restartConfiguration(Artifact configurationId) throws NoSuchConfigException, LifecycleException; 368 369 382 LifecycleResults restartConfiguration(Artifact configurationId, LifecycleMonitor monitor) throws NoSuchConfigException, LifecycleException; 383 384 396 LifecycleResults reloadConfiguration(Artifact configurationId) throws NoSuchConfigException, LifecycleException; 397 398 411 LifecycleResults reloadConfiguration(Artifact configurationId, LifecycleMonitor monitor) throws NoSuchConfigException, LifecycleException; 412 413 426 LifecycleResults reloadConfiguration(Artifact configurationId, Version version) throws NoSuchConfigException, LifecycleException; 427 428 442 LifecycleResults reloadConfiguration(Artifact configurationId, Version version, LifecycleMonitor monitor) throws NoSuchConfigException, LifecycleException; 443 444 455 LifecycleResults reloadConfiguration(ConfigurationData configurationData) throws NoSuchConfigException, LifecycleException; 456 457 469 LifecycleResults reloadConfiguration(ConfigurationData configurationData, LifecycleMonitor monitor) throws NoSuchConfigException, LifecycleException; 470 471 481 void uninstallConfiguration(Artifact configurationId) throws IOException , NoSuchConfigException; 482 483 488 ArtifactResolver getArtifactResolver(); 489 490 496 boolean isOnline(); 497 void setOnline(boolean online); 498 } 499 | Popular Tags |