Interface WriteableDao<T>
-
- All Superinterfaces:
ReadableDao<T>
- All Known Subinterfaces:
OverrideableDao<T>
,OverrideablePollOutagesDao
,OverrideableThreshdDao
,OverrideableThresholdingDao
,WriteablePollOutagesDao
,WriteableThreshdDao
,WriteableThresholdingDao
- All Known Implementing Classes:
OnmsPollOutagesDao
,OnmsThreshdDao
,OnmsThresholdingDao
,OverrideablePollOutagesDaoImpl
,OverrideableThreshdDaoImpl
,OverrideableThresholdingDaoImpl
public interface WriteableDao<T> extends ReadableDao<T>
The writeable version ofReadableDao
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getWriteableConfig()
This method returns the mutable configuration object for which any changes made to it will be persisted and reflected after a call tosaveConfig()
.void
onConfigChanged()
Notify the DAO that the configuration it tracks has changed.void
saveConfig()
Save the current configuration held by the DAO.-
Methods inherited from interface org.opennms.netmgt.config.dao.common.api.ReadableDao
getReadOnlyConfig, reload
-
-
-
-
Method Detail
-
getWriteableConfig
T getWriteableConfig()
This method returns the mutable configuration object for which any changes made to it will be persisted and reflected after a call tosaveConfig()
.
-
saveConfig
void saveConfig()
Save the current configuration held by the DAO.The configuration held by the DAO may not necessarily be the same configuration reference as returned by
getWriteableConfig()
if the config has been reloaded in between calls. This implies any changes to the reference returned bygetWriteableConfig()
will not be reflected when saved in this case.
-
onConfigChanged
void onConfigChanged()
Notify the DAO that the configuration it tracks has changed.Call this method after updating the filesystem configuration directly or after providing a config extension.
-
-