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