org.opennms.netmgt.dao.castor
Class DefaultProvisiondConfigurationDao

java.lang.Object
  extended by org.opennms.netmgt.dao.castor.AbstractCastorConfigDao<ProvisiondConfiguration,ProvisiondConfiguration>
      extended by org.opennms.netmgt.dao.castor.DefaultProvisiondConfigurationDao
All Implemented Interfaces:
ProvisiondConfigurationDao, org.springframework.beans.factory.InitializingBean

public class DefaultProvisiondConfigurationDao
extends AbstractCastorConfigDao<ProvisiondConfiguration,ProvisiondConfiguration>
implements ProvisiondConfigurationDao

Default implementation of AckdConfiguration containing utility methods for manipulating the Ackd and AckdReaders.

Version:
$Id: $
Author:
David Hustace

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao
AbstractCastorConfigDao.CastorReloadCallback
 
Constructor Summary
DefaultProvisiondConfigurationDao()
          Constructor for DefaultProvisiondConfigurationDao.
 
Method Summary
 ProvisiondConfiguration getConfig()
          getConfig
 RequisitionDef getDef(String defName)
          getDef
 List<RequisitionDef> getDefs()
          getDefs
 String getForeignSourceDir()
          getForeignSourceDir
 Integer getImportThreads()
          getImportThreads
 String getRequisitionDir()
          getRequisitionDir
 Integer getRescanThreads()
          getRescanThreads
 Integer getScanThreads()
          getScanThreads
 Integer getWriteThreads()
          getWriteThreads
 void reloadConfiguration()
          The exception boils up from the container class The container class should indicate this.
 ProvisiondConfiguration translateConfig(ProvisiondConfiguration castorConfig)
          translateConfig
 
Methods inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao
afterPropertiesSet, createLoadedLogMessage, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, log, setConfigResource, setReloadCheckInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProvisiondConfigurationDao

public DefaultProvisiondConfigurationDao()

Constructor for DefaultProvisiondConfigurationDao.

Method Detail

getConfig

public ProvisiondConfiguration getConfig()

getConfig

Specified by:
getConfig in interface ProvisiondConfigurationDao
Returns:
a ProvisiondConfiguration object.

translateConfig

public ProvisiondConfiguration translateConfig(ProvisiondConfiguration castorConfig)

translateConfig

Specified by:
translateConfig in class AbstractCastorConfigDao<ProvisiondConfiguration,ProvisiondConfiguration>
Parameters:
castorConfig - 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 interface ProvisiondConfigurationDao
Throws:
org.springframework.dao.DataAccessResourceFailureException - if any.

getDef

public RequisitionDef getDef(String defName)

getDef

Specified by:
getDef in interface ProvisiondConfigurationDao
Parameters:
defName - a String object.
Returns:
a RequisitionDef object.

getDefs

public List<RequisitionDef> getDefs()

getDefs

Specified by:
getDefs in interface ProvisiondConfigurationDao
Returns:
a List object.

getForeignSourceDir

public String getForeignSourceDir()

getForeignSourceDir

Specified by:
getForeignSourceDir in interface ProvisiondConfigurationDao
Returns:
a String object.

getRequisitionDir

public String getRequisitionDir()

getRequisitionDir

Specified by:
getRequisitionDir in interface ProvisiondConfigurationDao
Returns:
a String object.

getImportThreads

public Integer getImportThreads()

getImportThreads

Specified by:
getImportThreads in interface ProvisiondConfigurationDao
Returns:
a Integer object.

getScanThreads

public Integer getScanThreads()

getScanThreads

Specified by:
getScanThreads in interface ProvisiondConfigurationDao
Returns:
a Integer object.

getRescanThreads

public Integer getRescanThreads()

getRescanThreads

Specified by:
getRescanThreads in interface ProvisiondConfigurationDao
Returns:
a Integer object.

getWriteThreads

public Integer getWriteThreads()

getWriteThreads

Specified by:
getWriteThreads in interface ProvisiondConfigurationDao
Returns:
a Integer object.


Copyright © 2011. All Rights Reserved.