|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.configuration.ConfigurationStore gov.bnl.gums.configuration.DBConfigurationStore
public class DBConfigurationStore
Implements the logic to store the configuration in a database except for the bare configuration to specify the persistence factory at which to store the configuration.
Field Summary |
---|
Fields inherited from class gov.bnl.gums.configuration.ConfigurationStore |
---|
format |
Constructor Summary | |
---|---|
DBConfigurationStore(ConfigurationDB configDB)
|
Method Summary | |
---|---|
void |
deleteBackupConfiguration(String name)
Delete backup configuration |
Collection |
getBackupNames()
Get a list of config date strings that have been backed up |
Date |
getLastModification()
Get last modified |
boolean |
isActive()
Defines whether a configuration can be retrieved from the store. |
Configuration |
restoreConfiguration(String name)
Restores configuration in memory. |
Configuration |
retrieveConfiguration()
Loads the configuration in memory if or from storage based on reload. |
void |
setConfiguration(Configuration conf,
boolean backupCopy,
String name,
Date date)
Set and store the configuration. |
Methods inherited from class gov.bnl.gums.configuration.ConfigurationStore |
---|
getFormat |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBConfigurationStore(ConfigurationDB configDB)
Method Detail |
---|
public void deleteBackupConfiguration(String name)
ConfigurationStore
deleteBackupConfiguration
in class ConfigurationStore
public boolean isActive()
ConfigurationStore
isActive
in class ConfigurationStore
public Collection getBackupNames()
ConfigurationStore
getBackupNames
in class ConfigurationStore
public Date getLastModification()
ConfigurationStore
getLastModification
in class ConfigurationStore
public Configuration retrieveConfiguration() throws Exception
ConfigurationStore
retrieveConfiguration
in class ConfigurationStore
Exception
public Configuration restoreConfiguration(String name) throws Exception
ConfigurationStore
restoreConfiguration
in class ConfigurationStore
Exception
public void setConfiguration(Configuration conf, boolean backupCopy, String name, Date date) throws Exception
ConfigurationStore
setConfiguration
in class ConfigurationStore
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |