|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.kernel.config.SimpleConfigurationManager
org.apache.geronimo.deployment.DeploymentConfigurationManager
public class DeploymentConfigurationManager
| Field Summary |
|---|
| Fields inherited from class org.apache.geronimo.kernel.config.SimpleConfigurationManager |
|---|
configurationModel, configurations, GBEAN_INFO, log, repositories, stores, watchers |
| Constructor Summary | |
|---|---|
DeploymentConfigurationManager(ConfigurationManager configurationManager,
Collection repositories)
|
|
| Method Summary | |
|---|---|
protected void |
addNewConfigurationToModel(Configuration configuration)
|
ArtifactResolver |
getArtifactResolver()
Gets the common ArtifactResolver in case the caller wants to use this directly. |
Configuration |
getConfiguration(Artifact configurationId)
Gets a loaded Configuration (does not see unloaded configurations). |
Artifact[] |
getInstalled(Artifact query)
Given an artifact that's not fully resolved (e.g. some parts are missing), check whether there are any instances installed into the server environment. |
Artifact[] |
getLoaded(Artifact query)
Given an artifact that's not fully resolved (e.g. some parts are missing), check whether there are any instances loaded. |
Artifact[] |
getRunning(Artifact query)
Given an artifact that's not fully resolved (e.g. some parts are missing), check whether there are any instances running. |
ConfigurationStore |
getStoreForConfiguration(Artifact configId)
Gets the configuration store responsible for the specified configuration, or null if there is none. |
ConfigurationStore[] |
getStores()
Get all the ConfigurationStores known to this manager at present |
boolean |
isConfiguration(Artifact artifact)
Is the specified artifact a configuration? |
boolean |
isInstalled(Artifact configId)
Is the specified configuration installed into the server environment? |
boolean |
isLoaded(Artifact configId)
Is the specified configuration loaded into the kernel? |
boolean |
isOnline()
This configuration manager never starts any configurations |
boolean |
isRunning(Artifact configId)
Is the specified configuation running? |
List |
listConfigurations()
Gets a List>ConfigurationInfo< of every of every available configuation. |
List |
listConfigurations(AbstractName storeName)
Return a list of the configurations in a specific store. |
List |
listStores()
Return a list of the stores this manager knows about. |
protected void |
load(Artifact configurationId)
|
protected Configuration |
load(ConfigurationData configurationData,
LinkedHashSet resolvedParentIds,
Map loadedConfigurations)
|
LifecycleResults |
loadConfiguration(Artifact configurationId)
Load the specified configuration (from a config store) and all configurations it depends on into the kernel. |
LifecycleResults |
loadConfiguration(Artifact configurationId,
LifecycleMonitor monitor)
Load the specified configuration (from a config store) and all configurations it depends on into the kernel. |
LifecycleResults |
loadConfiguration(ConfigurationData configurationData)
Load the specified configurationData and all configurations it depends on (from a config store) into the kernel. |
LifecycleResults |
loadConfiguration(ConfigurationData configurationData,
LifecycleMonitor monitor)
Load the specified configurationData and all configurations it depends on (from a config store) into the kernel. |
LifecycleResults |
reloadConfiguration(Artifact id)
Reloads the specified configuration and all configurations that have a dependency on the specified configuration |
LifecycleResults |
reloadConfiguration(Artifact id,
LifecycleMonitor monitor)
Reloads the specified configuration and all configurations that have a dependency on the specified configuration |
LifecycleResults |
reloadConfiguration(Artifact id,
Version version)
Reloads the specified configuration and all configurations that have a dependency on the specified configuration |
LifecycleResults |
reloadConfiguration(Artifact id,
Version version,
LifecycleMonitor monitor)
Reloads the specified configuration and all configurations that have a dependency on the specified configuration |
LifecycleResults |
reloadConfiguration(ConfigurationData configurationData)
Reloads the specified configuration and all configurations that have a dependency on the specified configuration |
LifecycleResults |
reloadConfiguration(ConfigurationData configurationData,
LifecycleMonitor monitor)
Reloads the specified configuration and all configurations that have a dependency on the specified configuration |
LifecycleResults |
restartConfiguration(Artifact id)
Restarts the specified configuration and all configurations that have a service dependency on the specified configuration |
LifecycleResults |
restartConfiguration(Artifact id,
LifecycleMonitor monitor)
Restarts the specified configuration and all configurations that have a service dependency on the specified configuration |
void |
setOnline(boolean online)
|
protected void |
start(Configuration configuration)
|
LifecycleResults |
startConfiguration(Artifact id)
Loads and starts all of the gbeans contained within the configuration. |
LifecycleResults |
startConfiguration(Artifact id,
LifecycleMonitor monitor)
Loads and starts all of the gbeans contained within the configuration. |
protected void |
stop(Configuration configuration)
|
LifecycleResults |
stopConfiguration(Artifact id)
Stop the gbeans contained within the configuration. |
LifecycleResults |
stopConfiguration(Artifact id,
LifecycleMonitor monitor)
Stop the gbeans contained within the configuration. |
void |
uninstallConfiguration(Artifact configurationId)
Unstalls the specified configuration from the server. |
protected void |
unload(Configuration configuration)
|
LifecycleResults |
unloadConfiguration(Artifact id)
Stops and unloads the configuration. |
LifecycleResults |
unloadConfiguration(Artifact id,
LifecycleMonitor monitor)
Stops and unloads the configuration. |
| Methods inherited from class org.apache.geronimo.kernel.config.SimpleConfigurationManager |
|---|
getGBeanInfo, getLoadParents, getRepositories, getStartParents, getStoreList, migrateConfiguration, removeConfigurationFromModel, sort, uninstall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeploymentConfigurationManager(ConfigurationManager configurationManager,
Collection repositories)
| Method Detail |
|---|
public boolean isInstalled(Artifact configId)
ConfigurationManager
isInstalled in interface ConfigurationManagerisInstalled in class SimpleConfigurationManagerconfigId - the configuration identifier, which must be
fully resolved (isResolved() == true)
public boolean isLoaded(Artifact configId)
ConfigurationManager
isLoaded in interface ConfigurationManagerisLoaded in class SimpleConfigurationManagerconfigId - the configuration identifier, which must be
fully resolved (isResolved() == true)
public boolean isRunning(Artifact configId)
ConfigurationManager
isRunning in interface ConfigurationManagerisRunning in class SimpleConfigurationManagerconfigId - the configuration identifier, which must be
fully resolved (isResolved() == true)
public boolean isConfiguration(Artifact artifact)
ConfigurationManager
isConfiguration in interface ConfigurationManagerisConfiguration in class SimpleConfigurationManagerartifact - the ID of the artifact to check, which must be fully
resolved (isResolved() == true)
public Configuration getConfiguration(Artifact configurationId)
ConfigurationManager
getConfiguration in interface ConfigurationManagergetConfiguration in class SimpleConfigurationManagerconfigurationId - the unique ID of the configuration to get, which
must be fully resolved (isResolved() == true)
public ArtifactResolver getArtifactResolver()
ConfigurationManager
getArtifactResolver in interface ConfigurationManagergetArtifactResolver in class SimpleConfigurationManagerpublic boolean isOnline()
isOnline in interface ConfigurationManagerisOnline in class SimpleConfigurationManagerpublic void setOnline(boolean online)
setOnline in interface ConfigurationManagersetOnline in class SimpleConfigurationManager
public LifecycleResults loadConfiguration(Artifact configurationId)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
loadConfiguration in interface ConfigurationManagerloadConfiguration in class SimpleConfigurationManagerconfigurationId - the configuration identifier, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if no configuration with the given id exists in the configuration stores
LifecycleException - if there is a problem loading the configuration
public LifecycleResults loadConfiguration(Artifact configurationId,
LifecycleMonitor monitor)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
loadConfiguration in interface ConfigurationManagerloadConfiguration in class SimpleConfigurationManagerconfigurationId - the configuration identifier, which must be fully
resolved (isResolved() == true)monitor - the monitor that should receive events as the operation is carried out
NoSuchConfigException - if no configuration with the given id exists in the configuration stores
LifecycleException - if there is a problem loading the configuration
public LifecycleResults loadConfiguration(ConfigurationData configurationData)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
loadConfiguration in interface ConfigurationManagerloadConfiguration in class SimpleConfigurationManagerconfigurationData - the configuration to load
NoSuchConfigException - if no configuration with the given id exists in the configuration stores
LifecycleException - if there is a problem loading the configuration
public LifecycleResults loadConfiguration(ConfigurationData configurationData,
LifecycleMonitor monitor)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
loadConfiguration in interface ConfigurationManagerloadConfiguration in class SimpleConfigurationManagerconfigurationData - the configuration to loadmonitor - the monitor that should receive events as the operation is carried out
NoSuchConfigException - if no configuration with the given id exists in the configuration stores
LifecycleException - if there is a problem loading the configuration
protected Configuration load(ConfigurationData configurationData,
LinkedHashSet resolvedParentIds,
Map loadedConfigurations)
throws InvalidConfigException
load in class SimpleConfigurationManagerInvalidConfigException
protected void load(Artifact configurationId)
throws NoSuchConfigException
load in class SimpleConfigurationManagerNoSuchConfigException
protected void addNewConfigurationToModel(Configuration configuration)
throws NoSuchConfigException
addNewConfigurationToModel in class SimpleConfigurationManagerNoSuchConfigException
public LifecycleResults unloadConfiguration(Artifact id)
throws NoSuchConfigException
ConfigurationManager
unloadConfiguration in interface ConfigurationManagerunloadConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not loaded
public LifecycleResults unloadConfiguration(Artifact id,
LifecycleMonitor monitor)
throws NoSuchConfigException
ConfigurationManager
unloadConfiguration in interface ConfigurationManagerunloadConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)monitor - the monitor that should receive events as the
operation is carried out
NoSuchConfigException - if the configuration is not loadedprotected void unload(Configuration configuration)
unload in class SimpleConfigurationManagerprotected void stop(Configuration configuration)
stop in class SimpleConfigurationManagerpublic Artifact[] getInstalled(Artifact query)
ConfigurationManager
getInstalled in interface ConfigurationManagergetInstalled in class SimpleConfigurationManagerquery - The partially-complete artifact name to check for
public Artifact[] getLoaded(Artifact query)
ConfigurationManager
getLoaded in interface ConfigurationManagergetLoaded in class SimpleConfigurationManagerquery - The partially-complete artifact name to check for
public Artifact[] getRunning(Artifact query)
ConfigurationManager
getRunning in interface ConfigurationManagergetRunning in class SimpleConfigurationManagerquery - The partially-complete artifact name to check for
public List listStores()
ConfigurationManager
listStores in interface ConfigurationManagerlistStores in class SimpleConfigurationManagerpublic ConfigurationStore[] getStores()
ConfigurationManager
getStores in interface ConfigurationManagergetStores in class SimpleConfigurationManagerpublic List listConfigurations()
ConfigurationManager
listConfigurations in interface ConfigurationManagerlistConfigurations in class SimpleConfigurationManagerpublic ConfigurationStore getStoreForConfiguration(Artifact configId)
ConfigurationManager
getStoreForConfiguration in interface ConfigurationManagergetStoreForConfiguration in class SimpleConfigurationManagerconfigId - The unique ID for the configuration to check for,
which must be fully resolved (isResolved() == true)
public List listConfigurations(AbstractName storeName)
throws NoSuchStoreException
ConfigurationManager
listConfigurations in interface ConfigurationManagerlistConfigurations in class SimpleConfigurationManagerstoreName - the store to list
NoSuchStoreException - if the store could not be located
public LifecycleResults startConfiguration(Artifact id)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
startConfiguration in interface ConfigurationManagerstartConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not loaded
LifecycleException
public LifecycleResults startConfiguration(Artifact id,
LifecycleMonitor monitor)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
startConfiguration in interface ConfigurationManagerstartConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)monitor - the monitor that should receive events as the operation is carried out
NoSuchConfigException - if the configuration is not loaded
LifecycleException
protected void start(Configuration configuration)
throws Exception
start in class SimpleConfigurationManagerException
public LifecycleResults stopConfiguration(Artifact id)
throws NoSuchConfigException
ConfigurationManager
stopConfiguration in interface ConfigurationManagerstopConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not loaded
public LifecycleResults stopConfiguration(Artifact id,
LifecycleMonitor monitor)
throws NoSuchConfigException
ConfigurationManager
stopConfiguration in interface ConfigurationManagerstopConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)monitor - the monitor that should receive events as the operation is carried out
NoSuchConfigException - if the configuration is not loaded
public LifecycleResults restartConfiguration(Artifact id)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
restartConfiguration in interface ConfigurationManagerrestartConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not loaded
LifecycleException - if there is a problem loading the configuration
public LifecycleResults restartConfiguration(Artifact id,
LifecycleMonitor monitor)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
restartConfiguration in interface ConfigurationManagerrestartConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)monitor - the monitor that should receive events as the operation is carried out
NoSuchConfigException - if the configuration is not loaded
LifecycleException - if there is a problem loading the configuration
public LifecycleResults reloadConfiguration(Artifact id)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
reloadConfiguration in interface ConfigurationManagerreloadConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not loaded
LifecycleException - if there is a problem loading the configuration
public LifecycleResults reloadConfiguration(Artifact id,
LifecycleMonitor monitor)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
reloadConfiguration in interface ConfigurationManagerreloadConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)monitor - the monitor that should receive events as the operation is carried out
NoSuchConfigException - if the configuration is not loaded
LifecycleException - if there is a problem loading the configuration
public LifecycleResults reloadConfiguration(Artifact id,
Version version)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
reloadConfiguration in interface ConfigurationManagerreloadConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)version - new version to load from the config store
NoSuchConfigException - if the configuration is not loaded
LifecycleException - if there is a problem loading the configuration
public LifecycleResults reloadConfiguration(Artifact id,
Version version,
LifecycleMonitor monitor)
throws NoSuchConfigException,
LifecycleException
ConfigurationManager
reloadConfiguration in interface ConfigurationManagerreloadConfiguration in class SimpleConfigurationManagerid - the configuration identifier, which must be fully
resolved (isResolved() == true)version - new version to load from the config storemonitor - the monitor that should receive events as the operation is carried out
NoSuchConfigException - if the configuration is not loaded
LifecycleException - if there is a problem loading the configuration
public LifecycleResults reloadConfiguration(ConfigurationData configurationData)
throws LifecycleException,
NoSuchConfigException
ConfigurationManager
reloadConfiguration in interface ConfigurationManagerreloadConfiguration in class SimpleConfigurationManagerconfigurationData - the configuration to load
LifecycleException - if there is a problem loading the configuration
NoSuchConfigException - if the configuration is not loaded
public LifecycleResults reloadConfiguration(ConfigurationData configurationData,
LifecycleMonitor monitor)
throws LifecycleException,
NoSuchConfigException
ConfigurationManager
reloadConfiguration in interface ConfigurationManagerreloadConfiguration in class SimpleConfigurationManagerconfigurationData - the configuration to loadmonitor - the monitor that should receive events as the operation is carried out
LifecycleException - if there is a problem loading the configuration
NoSuchConfigException - if the configuration is not loaded
public void uninstallConfiguration(Artifact configurationId)
throws IOException,
NoSuchConfigException
ConfigurationManager
uninstallConfiguration in interface ConfigurationManageruninstallConfiguration in class SimpleConfigurationManagerconfigurationId - the configuration identifier, which must be fully
resolved (isResolved() == true)
IOException - if there was a problem removing the configuration
NoSuchConfigException - if the configuration is not loaded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||