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.Object
Abstract 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.Date
getLastUpdate()
V
getObject()
java.nio.file.Path
getOpennmsHome()
java.lang.Long
getReloadCheckInterval()
abstract V
mergeConfigs(V source, V target)
void
onConfigUpdated(V object)
Called when the configuration updated was updated.void
setOpennmsHome(java.nio.file.Path opennmsHome)
void
setReloadCheckInterval(java.lang.Long reloadCheckInterval)
abstract V
translateConfig(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)
-
-