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 java.lang.ObjectAbstract DAO used to merge the contents of .xml files stored in a particular directory.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description AbstractMergingJaxbConfigDao(java.lang.Class<K> entityClass, java.lang.String description, java.nio.file.Path includeFolder)AbstractMergingJaxbConfigDao(java.lang.Class<K> entityClass, java.lang.String description, java.nio.file.Path rootFile, java.nio.file.Path includeFolder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.DategetLastUpdate()VgetObject()java.nio.file.PathgetOpennmsHome()java.lang.LonggetReloadCheckInterval()abstract VmergeConfigs(V source, V target)voidonConfigUpdated(V object)Called when the configuration updated was updated.voidsetOpennmsHome(java.nio.file.Path opennmsHome)voidsetReloadCheckInterval(java.lang.Long reloadCheckInterval)abstract VtranslateConfig(K config)
-
-
-
Constructor Detail
-
AbstractMergingJaxbConfigDao
public AbstractMergingJaxbConfigDao(java.lang.Class<K> entityClass, java.lang.String description, java.nio.file.Path includeFolder)
-
AbstractMergingJaxbConfigDao
public AbstractMergingJaxbConfigDao(java.lang.Class<K> entityClass, java.lang.String description, java.nio.file.Path rootFile, java.nio.file.Path includeFolder)
-
-
Method Detail
-
setOpennmsHome
public void setOpennmsHome(java.nio.file.Path opennmsHome)
-
getOpennmsHome
public java.nio.file.Path getOpennmsHome()
-
onConfigUpdated
public void onConfigUpdated(V object)
Called when the configuration updated was updated.
-
getObject
public V getObject()
-
getLastUpdate
public java.util.Date getLastUpdate()
-
getReloadCheckInterval
public java.lang.Long getReloadCheckInterval()
-
setReloadCheckInterval
public void setReloadCheckInterval(java.lang.Long reloadCheckInterval)
-
-