Package org.opennms.netmgt.dao.jaxb
Class DefaultProvisiondConfigurationDao
- java.lang.Object
-
- org.opennms.features.config.service.impl.AbstractCmJaxbConfigDao<ProvisiondConfiguration>
-
- org.opennms.netmgt.dao.jaxb.DefaultProvisiondConfigurationDao
-
- All Implemented Interfaces:
CmJaxbConfigDao,ProvisiondConfigurationDao
public class DefaultProvisiondConfigurationDao extends AbstractCmJaxbConfigDao<ProvisiondConfiguration> implements ProvisiondConfigurationDao
Default implementation ofAckdConfigurationcontaining utility methods for manipulating theAckdandAckdReaders.- Version:
- $Id: $
- Author:
- David Hustace
-
-
Field Summary
-
Fields inherited from class org.opennms.features.config.service.impl.AbstractCmJaxbConfigDao
configurationManagerService
-
-
Constructor Summary
Constructors Constructor Description DefaultProvisiondConfigurationDao()Constructor for DefaultProvisiondConfigurationDao.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisiondConfigurationgetConfig()getConfigStringgetConfigName()ConfigName use for the Config and SchemaRequisitionDefgetDef(String defName)getDefList<RequisitionDef>getDefs()getDefsStringgetForeignSourceDir()getForeignSourceDirIntegergetImportThreads()getImportThreadsStringgetRequisitionDir()getRequisitionDirIntegergetRescanThreads()getRescanThreadsIntegergetScanThreads()getScanThreadsjava.util.function.Consumer<ConfigUpdateInfo>getUpdateCallback()It will provide the callback for all update, you can simplyjava.util.function.Consumer<ConfigUpdateInfo>getValidationCallback()It will return null validation callback for all ConfigDao.IntegergetWriteThreads()getWriteThreadsvoidreloadConfiguration()The exception boils up from the container class The container class should indicate this.-
Methods inherited from class org.opennms.features.config.service.impl.AbstractCmJaxbConfigDao
addOnReloadedCallback, addValidationCallback, getConfig, getDescription, loadConfig, loadConfig, postConstruct, updateConfig, updateConfig, updateConfig, updateConfig, updateConfig
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.features.config.service.api.CmJaxbConfigDao
getDefaultConfigId
-
-
-
-
Method Detail
-
getConfig
public ProvisiondConfiguration getConfig() throws IOException
getConfig
- Specified by:
getConfigin interfaceProvisiondConfigurationDao- Returns:
- a
ProvisiondConfigurationobject. - Throws:
IOException
-
reloadConfiguration
public void reloadConfiguration() throws IOExceptionThe exception boils up from the container class The container class should indicate this.- Specified by:
reloadConfigurationin interfaceProvisiondConfigurationDao- Throws:
org.springframework.dao.DataAccessResourceFailureException- if any.IOException
-
getDef
public RequisitionDef getDef(String defName) throws IOException
getDef
- Specified by:
getDefin interfaceProvisiondConfigurationDao- Parameters:
defName- aStringobject.- Returns:
- a
RequisitionDefobject. - Throws:
IOException
-
getDefs
public List<RequisitionDef> getDefs() throws IOException
getDefs
- Specified by:
getDefsin interfaceProvisiondConfigurationDao- Returns:
- a
Listobject. - Throws:
IOException
-
getForeignSourceDir
public String getForeignSourceDir() throws IOException
getForeignSourceDir
- Specified by:
getForeignSourceDirin interfaceProvisiondConfigurationDao- Returns:
- a
Stringobject. - Throws:
IOException
-
getRequisitionDir
public String getRequisitionDir() throws IOException
getRequisitionDir
- Specified by:
getRequisitionDirin interfaceProvisiondConfigurationDao- Returns:
- a
Stringobject. - Throws:
IOException
-
getImportThreads
public Integer getImportThreads() throws IOException
getImportThreads
- Specified by:
getImportThreadsin interfaceProvisiondConfigurationDao- Returns:
- a
Integerobject. - Throws:
IOException
-
getScanThreads
public Integer getScanThreads() throws IOException
getScanThreads
- Specified by:
getScanThreadsin interfaceProvisiondConfigurationDao- Returns:
- a
Integerobject. - Throws:
IOException
-
getRescanThreads
public Integer getRescanThreads() throws IOException
getRescanThreads
- Specified by:
getRescanThreadsin interfaceProvisiondConfigurationDao- Returns:
- a
Integerobject. - Throws:
IOException
-
getWriteThreads
public Integer getWriteThreads() throws IOException
getWriteThreads
- Specified by:
getWriteThreadsin interfaceProvisiondConfigurationDao- Returns:
- a
Integerobject. - Throws:
IOException
-
getUpdateCallback
public java.util.function.Consumer<ConfigUpdateInfo> getUpdateCallback()
Description copied from interface:CmJaxbConfigDaoIt will provide the callback for all update, you can simply- Specified by:
getUpdateCallbackin interfaceCmJaxbConfigDao- Returns:
- Consumer
-
getValidationCallback
public java.util.function.Consumer<ConfigUpdateInfo> getValidationCallback()
Description copied from interface:CmJaxbConfigDaoIt will return null validation callback for all ConfigDao. By default, it is no needed. Validation will rely on openAPI schema. (xsd) Override if you need to do extra validation logic. e.g. quartz expression is not possible to validate by pattern.- Specified by:
getValidationCallbackin interfaceCmJaxbConfigDao- Returns:
- Consumer
-
getConfigName
public String getConfigName()
Description copied from interface:CmJaxbConfigDaoConfigName use for the Config and Schema- Specified by:
getConfigNamein interfaceCmJaxbConfigDao- Returns:
- ConfigName
-
-