Package org.eso.ias.cdb
Interface CdbWriter
- All Known Implementing Classes:
RdbWriter
,StructuredTextWriter
public interface CdbWriter
Interface to flush the content of the CDB pojos
in the configuration database
Life cycle:
init()
must be called to acquire the resources before invoking methods of this ineterfaceshutdown()
must be invoked to free the allocated resource when done using this interface
- Author:
- acaproni
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Initialize the CDBvoid
shutdown()
Close the CDB and release the associated resourcesvoid
Write the ASCE in the passed file.void
writeClientConfig
(ClientConfigDao clientConfigDao) Write the configuration of the passed clientvoid
Write the DASU in the passed file.void
Write the ias in the passed file.void
writeIasio
(IasioDao iasio, boolean append) Write the IASIO in the file.void
writeIasios
(Set<IasioDao> iasios, boolean append) Write the IASIOs in the file.void
writePluginConfig
(PluginConfigDao pluginConfigDao) Write the configuration of the passed pluginvoid
writeSupervisor
(SupervisorDao superv) Write the Supervisor in the passed file.void
writeTemplate
(TemplateDao templateDao) Write the passed template to the CDBvoid
writeTransferFunction
(TransferFunctionDao transferFunction) Write the transfer function to the CDB
-
Method Details
-
writeIas
Write the ias in the passed file.- Parameters:
ias
- The IAS configuration to write in the file- Throws:
IasCdbException
- In case of error writing the IAS
-
writeSupervisor
Write the Supervisor in the passed file.- Parameters:
superv
- The Supervisor configuration to write in the file- Throws:
IasCdbException
- In case of error writing the Supervisor
-
writeDasu
Write the DASU in the passed file.- Parameters:
dasu
- The DASU configuration to write in the file- Throws:
IasCdbException
- In case of error writing the DASU
-
writeTransferFunction
Write the transfer function to the CDB- Parameters:
transferFunction
- The TF configuration to write in the file- Throws:
IasCdbException
- In case of error writing the TF
-
writeTemplate
Write the passed template to the CDB- Parameters:
templateDao
- The template DAO to write in the file- Throws:
IasCdbException
- In case of error writing the TF
-
writeAsce
Write the ASCE in the passed file.- Parameters:
asce
- The ASCE configuration to write in the file- Throws:
IasCdbException
- In case of error writing the ASCE
-
writeIasio
Write the IASIO in the file.- Parameters:
iasio
- The IASIO configuration to write in the fileappend
- : iftrue
the passed iasio is appended to the file otherwise a new file is created- Throws:
IasCdbException
- In case of error writing the IASIO
-
writeIasios
Write the IASIOs in the file.- Parameters:
iasios
- The IASIOs to write in the fileappend
- : iftrue
the passed iasios are appended to the file otherwise a new file is created- Throws:
IasCdbException
- In case of error writing the IASIOs
-
writePluginConfig
Write the configuration of the passed plugin- Parameters:
pluginConfigDao
- the configuraton of the plugin- Throws:
IasCdbException
- In case of error writing the configuration
-
writeClientConfig
Write the configuration of the passed client- Parameters:
clientConfigDao
- the configuraton of the client- Throws:
IasCdbException
- In case of error writing the configuration
-
init
Initialize the CDB- Throws:
IasCdbException
-
shutdown
Close the CDB and release the associated resources- Throws:
IasCdbException
-