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 ineterface
  • shutdown() must be invoked to free the allocated resource when done using this interface
Author:
acaproni
  • Method Details

    • writeIas

      void writeIas(IasDao ias) throws IasCdbException
      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

      void writeSupervisor(SupervisorDao superv) throws IasCdbException
      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

      void writeDasu(DasuDao dasu) throws IasCdbException
      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

      void writeTransferFunction(TransferFunctionDao transferFunction) throws IasCdbException
      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

      void writeTemplate(TemplateDao templateDao) throws IasCdbException
      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

      void writeAsce(AsceDao asce) throws IasCdbException
      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

      void writeIasio(IasioDao iasio, boolean append) throws IasCdbException
      Write the IASIO in the file.
      Parameters:
      iasio - The IASIO configuration to write in the file
      append - : if true the passed iasio is appended to the file otherwise a new file is created
      Throws:
      IasCdbException - In case of error writing the IASIO
    • writeIasios

      void writeIasios(Set<IasioDao> iasios, boolean append) throws IasCdbException
      Write the IASIOs in the file.
      Parameters:
      iasios - The IASIOs to write in the file
      append - : if true the passed iasios are appended to the file otherwise a new file is created
      Throws:
      IasCdbException - In case of error writing the IASIOs
    • writePluginConfig

      void writePluginConfig(PluginConfigDao pluginConfigDao) throws IasCdbException
      Write the configuration of the passed plugin
      Parameters:
      pluginConfigDao - the configuraton of the plugin
      Throws:
      IasCdbException - In case of error writing the configuration
    • writeClientConfig

      void writeClientConfig(ClientConfigDao clientConfigDao) throws IasCdbException
      Write the configuration of the passed client
      Parameters:
      clientConfigDao - the configuraton of the client
      Throws:
      IasCdbException - In case of error writing the configuration
    • init

      void init() throws IasCdbException
      Initialize the CDB
      Throws:
      IasCdbException
    • shutdown

      void shutdown() throws IasCdbException
      Close the CDB and release the associated resources
      Throws:
      IasCdbException