|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationStore
Encapsulate the logic of retrieving the configuration from where it is stored. This will allow to retrieve the configuration from a File, from a database, or from whenever we will need to.
Method Summary | |
---|---|
void |
deleteBackupConfiguration(java.lang.String dateStr)
|
java.util.Collection |
getBackupConfigDates()
Get a list of config files that have been backed up |
boolean |
isActive()
Defines whether a configuration can be retrieved from the store. |
boolean |
isReadOnly()
Defines whether the configuration can be changed or not. |
Configuration |
restoreConfiguration(java.lang.String dateStr)
Restores configuration in memory. |
Configuration |
retrieveConfiguration()
Loads the configuration in memory. |
void |
setConfiguration(Configuration conf,
boolean backupCopy)
Set and store the configuration. |
Method Detail |
---|
void deleteBackupConfiguration(java.lang.String dateStr)
boolean isActive()
boolean isReadOnly()
java.util.Collection getBackupConfigDates()
Configuration retrieveConfiguration() throws java.lang.RuntimeException
java.lang.RuntimeException
Configuration restoreConfiguration(java.lang.String dateStr) throws java.lang.RuntimeException
java.lang.RuntimeException
void setConfiguration(Configuration conf, boolean backupCopy) throws java.lang.Exception
conf
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |