Package org.opennms.core.xml
Class AbstractMergingJaxbConfigDao<K,V>
- java.lang.Object
-
- org.opennms.core.xml.AbstractMergingJaxbConfigDao<K,V>
-
- Type Parameters:
K- JAXB classV- Configuration object that is stored in memory (might be the same as the JAXB class or could be a different class)
- Direct Known Subclasses:
DefaultResourceTypesDao,JMXDataCollectionConfigDao,PrometheusDataCollectionConfigDaoJaxb,WSManDataCollectionConfigDaoJaxb
public abstract class AbstractMergingJaxbConfigDao<K,V> extends Object
Abstract DAO used to merge the contents of .xml files stored in a particular directory.- Author:
- jwhite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DategetLastUpdate()VgetObject()PathgetOpennmsHome()LonggetReloadCheckInterval()abstract VmergeConfigs(V source, V target)voidonConfigUpdated(V object)Called when the configuration updated was updated.voidsetOpennmsHome(Path opennmsHome)voidsetReloadCheckInterval(Long reloadCheckInterval)abstract VtranslateConfig(K config)
-
-
-
Method Detail
-
setOpennmsHome
public void setOpennmsHome(Path opennmsHome)
-
getOpennmsHome
public Path getOpennmsHome()
-
onConfigUpdated
public void onConfigUpdated(V object)
Called when the configuration updated was updated.
-
getObject
public V getObject()
-
getLastUpdate
public Date getLastUpdate()
-
getReloadCheckInterval
public Long getReloadCheckInterval()
-
setReloadCheckInterval
public void setReloadCheckInterval(Long reloadCheckInterval)
-
-