Package org.opennms.netmgt.dao.jaxb
Class DefaultProvisiondConfigurationDao
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<ProvisiondConfiguration,ProvisiondConfiguration>
-
- org.opennms.netmgt.dao.jaxb.DefaultProvisiondConfigurationDao
-
- All Implemented Interfaces:
ProvisiondConfigurationDao
,org.springframework.beans.factory.InitializingBean
public class DefaultProvisiondConfigurationDao extends AbstractJaxbConfigDao<ProvisiondConfiguration,ProvisiondConfiguration> implements ProvisiondConfigurationDao
Default implementation ofAckdConfiguration
containing utility methods for manipulating theAckd
andAckdReader
s.- Version:
- $Id: $
- Author:
- David Hustace
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description DefaultProvisiondConfigurationDao()
Constructor for DefaultProvisiondConfigurationDao.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisiondConfiguration
getConfig()
getConfigRequisitionDef
getDef(java.lang.String defName)
getDefjava.util.List<RequisitionDef>
getDefs()
getDefsjava.lang.String
getForeignSourceDir()
getForeignSourceDirjava.lang.Integer
getImportThreads()
getImportThreadsjava.lang.String
getRequisitionDir()
getRequisitionDirjava.lang.Integer
getRescanThreads()
getRescanThreadsjava.lang.Integer
getScanThreads()
getScanThreadsjava.lang.Integer
getWriteThreads()
getWriteThreadsvoid
reloadConfiguration()
The exception boils up from the container class The container class should indicate this.ProvisiondConfiguration
translateConfig(ProvisiondConfiguration config)
translateConfig-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
getConfig
public ProvisiondConfiguration getConfig()
getConfig
- Specified by:
getConfig
in interfaceProvisiondConfigurationDao
- Returns:
- a
ProvisiondConfiguration
object.
-
translateConfig
public ProvisiondConfiguration translateConfig(ProvisiondConfiguration config)
translateConfig
- Specified by:
translateConfig
in classAbstractJaxbConfigDao<ProvisiondConfiguration,ProvisiondConfiguration>
- Parameters:
config
- a K object.- Returns:
- a V object.
-
reloadConfiguration
public void reloadConfiguration() throws org.springframework.dao.DataAccessResourceFailureException
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.
-
getDef
public RequisitionDef getDef(java.lang.String defName)
getDef
- Specified by:
getDef
in interfaceProvisiondConfigurationDao
- Parameters:
defName
- aString
object.- Returns:
- a
RequisitionDef
object.
-
getDefs
public java.util.List<RequisitionDef> getDefs()
getDefs
- Specified by:
getDefs
in interfaceProvisiondConfigurationDao
- Returns:
- a
List
object.
-
getForeignSourceDir
public java.lang.String getForeignSourceDir()
getForeignSourceDir
- Specified by:
getForeignSourceDir
in interfaceProvisiondConfigurationDao
- Returns:
- a
String
object.
-
getRequisitionDir
public java.lang.String getRequisitionDir()
getRequisitionDir
- Specified by:
getRequisitionDir
in interfaceProvisiondConfigurationDao
- Returns:
- a
String
object.
-
getImportThreads
public java.lang.Integer getImportThreads()
getImportThreads
- Specified by:
getImportThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object.
-
getScanThreads
public java.lang.Integer getScanThreads()
getScanThreads
- Specified by:
getScanThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object.
-
getRescanThreads
public java.lang.Integer getRescanThreads()
getRescanThreads
- Specified by:
getRescanThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object.
-
getWriteThreads
public java.lang.Integer getWriteThreads()
getWriteThreads
- Specified by:
getWriteThreads
in interfaceProvisiondConfigurationDao
- Returns:
- a
Integer
object.
-
-