org.opennms.netmgt.dao
Interface ProvisiondConfigurationDao

All Known Implementing Classes:
DefaultProvisiondConfigurationDao

public interface ProvisiondConfigurationDao

DAO interface for Provisiond configuration

Version:
$Id: $
Author:
David Hustace

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 underlying Castor based DAO abstraction in the default implementation doesn't provide access to the container so this method is defined so that access to the container doesn't have to be exposed and a reload can still be controlled by the user.
 

Method Detail

getConfig

ProvisiondConfiguration getConfig()

getConfig

Returns:
a ProvisiondConfiguration object.

getDef

RequisitionDef getDef(String defName)

getDef

Parameters:
defName - a String object.
Returns:
a RequisitionDef object.

getDefs

List<RequisitionDef> getDefs()

getDefs

Returns:
a List object.

getImportThreads

Integer getImportThreads()

getImportThreads

Returns:
a Integer object.

getScanThreads

Integer getScanThreads()

getScanThreads

Returns:
a Integer object.

getRescanThreads

Integer getRescanThreads()

getRescanThreads

Returns:
a Integer object.

getWriteThreads

Integer getWriteThreads()

getWriteThreads

Returns:
a Integer object.

getRequisitionDir

String getRequisitionDir()

getRequisitionDir

Returns:
a String object.

getForeignSourceDir

String getForeignSourceDir()

getForeignSourceDir

Returns:
a String object.

reloadConfiguration

void reloadConfiguration()
                         throws org.springframework.dao.DataAccessResourceFailureException
The underlying Castor based DAO abstraction in the default implementation doesn't provide access to the container so this method is defined so that access to the container doesn't have to be exposed and a reload can still be controlled by the user. Automatically reading in new values if the file changes is a different use case from expecting the services to alter their state based on a configuration change. This method will most likely be used with event processing and possibly in the ReST API.

Throws:
org.springframework.dao.DataAccessResourceFailureException - if any.


Copyright © 2011. All Rights Reserved.