Package org.jitsi.impl.configuration
Class DatabaseConfigurationStore
- java.lang.Object
-
- org.jitsi.impl.configuration.HashtableConfigurationStore<Hashtable>
-
- org.jitsi.impl.configuration.DatabaseConfigurationStore
-
- All Implemented Interfaces:
ConfigurationStore
public abstract class DatabaseConfigurationStore extends HashtableConfigurationStore<Hashtable>
- Author:
- Lyubomir Marinov
-
-
Field Summary
-
Fields inherited from class org.jitsi.impl.configuration.HashtableConfigurationStore
properties
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDatabaseConfigurationStore()Initializes a new DatabaseConfigurationStore instance.protectedDatabaseConfigurationStore(Hashtable properties)Initializes a new DatabaseConfigurationStore instance with a specific runtime Hashtable storage.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidreloadConfiguration()Removes all property name-value associations currently present in this ConfigurationStore instance and deserializes new property name-value associations from its underlying database (storage).voidreloadConfiguration(File file)Removes all property name-value associations currently present in this ConfigurationStore and deserializes new property name-value associations from a specific File which presumably is in the format represented by this instance.protected voidstoreConfiguration()Stores/serializes the property name-value associations currently present in this ConfigurationStore instance into its underlying database (storage).voidstoreConfiguration(OutputStream out)Stores/serializes the property name-value associations currently present in this ConfigurationStore into a specific OutputStream in the format represented by this instance.-
Methods inherited from class org.jitsi.impl.configuration.HashtableConfigurationStore
getProperty, getPropertyNames, isSystemProperty, removeProperty, setNonSystemProperty, setSystemProperty
-
-
-
-
Constructor Detail
-
DatabaseConfigurationStore
protected DatabaseConfigurationStore()
Initializes a new DatabaseConfigurationStore instance.
-
DatabaseConfigurationStore
protected DatabaseConfigurationStore(Hashtable properties)
Initializes a new DatabaseConfigurationStore instance with a specific runtime Hashtable storage.- Parameters:
properties- the Hashtable which is to become the runtime storage of the new instance
-
-
Method Detail
-
reloadConfiguration
protected abstract void reloadConfiguration() throws IOExceptionRemoves all property name-value associations currently present in this ConfigurationStore instance and deserializes new property name-value associations from its underlying database (storage).- Throws:
IOException- if there is an input error while reading from the underlying database (storage)
-
reloadConfiguration
public void reloadConfiguration(File file) throws IOException, XMLException
Removes all property name-value associations currently present in this ConfigurationStore and deserializes new property name-value associations from a specific File which presumably is in the format represented by this instance.- Parameters:
file- the File to be read and to deserialize new property name-value associations from into this instance- Throws:
IOException- if there is an input error while reading from the specified fileXMLException- if parsing the contents of the specified file fails- See Also:
ConfigurationStore.reloadConfiguration(File)
-
storeConfiguration
protected void storeConfiguration() throws IOExceptionStores/serializes the property name-value associations currently present in this ConfigurationStore instance into its underlying database (storage).- Throws:
IOException- if there is an output error while storing the properties managed by this ConfigurationStore instance into its underlying database (storage)
-
storeConfiguration
public void storeConfiguration(OutputStream out) throws IOException
Stores/serializes the property name-value associations currently present in this ConfigurationStore into a specific OutputStream in the format represented by this instance.- Parameters:
out- the OutputStream to receive the serialized form of the property name-value associations currently present in this ConfigurationStore- Throws:
IOException- if there is an output error while storing the properties managed by this ConfigurationStore into the specified file- See Also:
ConfigurationStore.storeConfiguration(OutputStream)
-
-