|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.configuration.ConfigurationStore
public abstract class 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.
Field Summary | |
---|---|
protected static DateFormat |
format
|
Constructor Summary | |
---|---|
ConfigurationStore()
|
Method Summary | |
---|---|
abstract void |
deleteBackupConfiguration(String name)
Delete backup configuration |
abstract Collection |
getBackupNames()
Get a list of config date strings that have been backed up |
static DateFormat |
getFormat()
|
abstract Date |
getLastModification()
Get last modified |
abstract boolean |
isActive()
Defines whether a configuration can be retrieved from the store. |
abstract Configuration |
restoreConfiguration(String dateStr)
Restores configuration in memory. |
abstract Configuration |
retrieveConfiguration()
Loads the configuration in memory if or from storage based on reload. |
abstract void |
setConfiguration(Configuration conf,
boolean backupCopy,
String name,
Date date)
Set and store the configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static DateFormat format
Constructor Detail |
---|
public ConfigurationStore()
Method Detail |
---|
public abstract void deleteBackupConfiguration(String name)
A
- date stringpublic abstract Collection getBackupNames()
public abstract Date getLastModification()
public abstract boolean isActive()
public abstract Configuration restoreConfiguration(String dateStr) throws Exception
A
- date string
Exception
public abstract Configuration retrieveConfiguration() throws Exception
Exception
public abstract void setConfiguration(Configuration conf, boolean backupCopy, String name, Date date) throws Exception
conf
- backupCopy
-
Exception
public static DateFormat getFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |