|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to a store for Configurations.
| Method Summary | |
boolean |
containsConfiguration(Artifact configId)
Determines if the store contains a configuration with the specified ID. |
File |
createNewConfigurationDir(Artifact configId)
Creates an empty directory for a new configuration with the specified configId |
void |
exportConfiguration(Artifact configId,
OutputStream output)
Exports a configuration as a ZIP file. |
org.apache.geronimo.gbean.AbstractName |
getAbstractName()
Return the object name for the store. |
String |
getObjectName()
Return the object name for the store. |
void |
install(ConfigurationData configurationData)
Move the unpacked configuration directory into this store |
boolean |
isInPlaceConfiguration(Artifact configId)
Determines if the identified configuration is an in-place one. |
List |
listConfigurations()
Return the configurations in the store |
ConfigurationData |
loadConfiguration(Artifact configId)
Loads the specified configuration into the kernel |
Set |
resolve(Artifact configId,
String moduleName,
String path)
Locate the physical locations which match the supplied path in the given artifact/module. |
void |
uninstall(Artifact configId)
Removes a configuration from the store |
| Method Detail |
public boolean isInPlaceConfiguration(Artifact configId)
throws NoSuchConfigException,
IOException
configId - the unique ID of the configuration, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not contained in
the store
IOException - If the store cannot be read.
public void install(ConfigurationData configurationData)
throws IOException,
InvalidConfigException
configurationData - the configuration data
IOException - if the direcotyr could not be moved into the store
InvalidConfigException - if there is a configuration problem within the source direcotry
public void uninstall(Artifact configId)
throws NoSuchConfigException,
IOException
configId - the id of the configuration to remove, which must be
fully resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not contained in the store
IOException - if a problem occurs during the removal
public ConfigurationData loadConfiguration(Artifact configId)
throws NoSuchConfigException,
IOException,
InvalidConfigException
configId - the id of the configuration to load, which must be fully
resolved (isResolved() == true)
NoSuchConfigException - if the configuration is not contained in the kernel
IOException - if a problem occurs loading the configuration from the store
InvalidConfigException - if the configuration is corruptpublic boolean containsConfiguration(Artifact configId)
configId - the unique ID of the configuration, which must be fully
resolved (isResolved() == true)
public String getObjectName()
public org.apache.geronimo.gbean.AbstractName getAbstractName()
public List listConfigurations()
public File createNewConfigurationDir(Artifact configId)
throws ConfigurationAlreadyExistsException
configId - the unique ID of the configuration, which must be fully
resolved (isResolved() == true)
ConfigurationAlreadyExistsException - if the configuration already exists in this store
public Set resolve(Artifact configId,
String moduleName,
String path)
throws NoSuchConfigException,
MalformedURLException
configId - the artifact to search, which must be fully resolved
(isResolved() == true)moduleName - the module name or null to search in the top-level
artifact locationpath - the pattern to search for within the artifact/module,
which may also be null to identify the artifact or
module base path
NoSuchConfigException
MalformedURLException
public void exportConfiguration(Artifact configId,
OutputStream output)
throws IOException,
NoSuchConfigException
configId - The unique ID of the configuration to export, which
must be fully resolved (isResolved() == true)output - The stream to write the ZIP content to
IOException
NoSuchConfigException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||