|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.configure.AbstractConfigurationLoader
com.ail.core.configure.EJBConfigurationLoader
public class EJBConfigurationLoader
This configuration loader acts as a facade to the the configuration server services. It is intended to be used by remote clients (e.g. web start apps) which don't have direct access to loader being used by the server side. In effect the remote client's requests for configuration information are relayed to the server side configuration server, which in turn relays them to whatever mechanism the server is using (e.g. JDBC).
| Constructor Summary | |
|---|---|
EJBConfigurationLoader()
|
|
| Method Summary | |
|---|---|
void |
deleteConfigurationRepository()
Delete the repository holding configuration information. |
EJBLoader |
getLoaderEJB()
Fetch an instance of the remote facade that will perform the configuration operations for us. |
java.util.Collection<java.lang.String> |
getNamespaces()
Return a list of all the namespaces in the database which have a validTo date of 0. |
java.util.Collection<ConfigurationSummary> |
getNamespacesHistorySummary(java.lang.String namespace)
Build and return a list of the details of a namespaces versions. |
java.util.Collection<ConfigurationSummary> |
getNamespacesSummary()
Build and return a list of the details of the namespaces currently being used. |
Configuration |
loadConfiguration(java.lang.String namespace,
VersionEffectiveDate date)
Load a namespace's configuration. |
void |
purgeAllConfigurations()
Delete ALL configuration information. |
void |
reset()
When the configuration handler is asked to "reset", it passes that request onto the loader currently in user. |
void |
saveConfiguration(java.lang.String namespace,
Configuration config)
Save a configuration into the database. |
| Methods inherited from class com.ail.core.configure.AbstractConfigurationLoader |
|---|
getLoaderParams, loadLoader |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EJBConfigurationLoader()
| Method Detail |
|---|
public EJBLoader getLoaderEJB()
public Configuration loadConfiguration(java.lang.String namespace,
VersionEffectiveDate date)
loadConfiguration in class AbstractConfigurationLoadernamespace - The namespace to load.date - The date to load the namespace for.
UnknownNamespaceError - if the namespace does not exist, or is not valid for the date specificed.
public void saveConfiguration(java.lang.String namespace,
Configuration config)
If either the database or table specified in loader.properties does not exist on the first attempt to save a configuration, this method will attempt to create both. For this to work the db user specified in loader.properties must have the necessary 'GRANTS' for table and database creation.
saveConfiguration in class AbstractConfigurationLoadernamespace - The namespace the configuration is associated with.config - The configuration to be saved.
BootstrapConfigurationError - if the configuration cannot be serialized, or the database access fails.public java.util.Collection<java.lang.String> getNamespaces()
getNamespaces in class AbstractConfigurationLoaderpublic java.util.Collection<ConfigurationSummary> getNamespacesSummary()
AbstractConfigurationLoader
getNamespacesSummary in class AbstractConfigurationLoaderConfigurationSummary..public java.util.Collection<ConfigurationSummary> getNamespacesHistorySummary(java.lang.String namespace)
AbstractConfigurationLoader
getNamespacesHistorySummary in class AbstractConfigurationLoadernamespace - The namespace to fetch the history for.
ConfigurationSummary..public void reset()
reset in class AbstractConfigurationLoaderpublic void purgeAllConfigurations()
NOTE: ALL CONFIGURATION INFORMATION WILL BE LOST!
purgeAllConfigurations in class AbstractConfigurationLoaderpublic void deleteConfigurationRepository()
purgeAllConfigurations() but also removes the
repository itself.NOTE: ALL CONFIGURATION INFORMATION WILL BE LOST!
deleteConfigurationRepository in class AbstractConfigurationLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||