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 ofAckdConfiguration
containing utility methods for manipulating theAckd
andAckdReader
s.- 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 ProvisiondConfiguration
getConfig()
getConfigString
getConfigName()
ConfigName use for the Config and SchemaRequisitionDef
getDef(String defName)
getDefList<RequisitionDef>
getDefs()
getDefsString
getForeignSourceDir()
getForeignSourceDirInteger
getImportThreads()
getImportThreadsString
getRequisitionDir()
getRequisitionDirInteger
getRescanThreads()
getRescanThreadsInteger
getScanThreads()
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.Integer
getWriteThreads()
getWriteThreadsvoid
reloadConfiguration()
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:
getConfig
in interfaceProvisiondConfigurationDao
- Returns:
- a
ProvisiondConfiguration
object. - Throws:
IOException
-
reloadConfiguration
public void reloadConfiguration() throws IOException
The exception boils up from the container class The container class should indicate this.- Specified by:
reloadConfiguration
in interfaceProvisiondConfigurationDao
- Throws:
org.springframework.dao.DataAccessResourceFailureException
- if any.IOException
-
getDef
public RequisitionDef getDef(String defName) throws IOException
getDef
- Specified by:
getDef
in interfaceProvisiondConfigurationDao
- Parameters:
defName
- aString
object.- Returns:
- a
RequisitionDef
object. - Throws:
IOException
-
getDefs
public List<RequisitionDef> getDefs() throws IOException
getDefs
- Specified by:
getDefs
in interfaceProvisiondConfigurationDao
- Returns:
- a
List
object. - Throws:
IOException
-
getForeignSourceDir
public String getForeignSourceDir() throws IOException
getForeignSourceDir
- Specified by:
getForeignSourceDir
in interfaceProvisiondConfigurationDao
- Returns:
- a
String
object. - Throws:
IOException
-
getRequisitionDir
public String getRequisitionDir() throws IOException
getRequisitionDir
- Specified by:
getRequisitionDir
in interfaceProvisiondConfigurationDao
- Returns:
- a
String
object. - Throws:
IOException
-
getImportThreads
public Integer getImportThreads() throws IOException
getImportThreads
- Specified by:
getImportThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object. - Throws:
IOException
-
getScanThreads
public Integer getScanThreads() throws IOException
getScanThreads
- Specified by:
getScanThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object. - Throws:
IOException
-
getRescanThreads
public Integer getRescanThreads() throws IOException
getRescanThreads
- Specified by:
getRescanThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object. - Throws:
IOException
-
getWriteThreads
public Integer getWriteThreads() throws IOException
getWriteThreads
- Specified by:
getWriteThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object. - Throws:
IOException
-
getUpdateCallback
public java.util.function.Consumer<ConfigUpdateInfo> getUpdateCallback()
Description copied from interface:CmJaxbConfigDao
It will provide the callback for all update, you can simply- Specified by:
getUpdateCallback
in interfaceCmJaxbConfigDao
- Returns:
- Consumer
-
getValidationCallback
public java.util.function.Consumer<ConfigUpdateInfo> getValidationCallback()
Description copied from interface:CmJaxbConfigDao
It 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:
getValidationCallback
in interfaceCmJaxbConfigDao
- Returns:
- Consumer
-
getConfigName
public String getConfigName()
Description copied from interface:CmJaxbConfigDao
ConfigName use for the Config and Schema- Specified by:
getConfigName
in interfaceCmJaxbConfigDao
- Returns:
- ConfigName
-
-