Package org.eso.ias.cdb.rdb
Class RdbReader
java.lang.Object
org.eso.ias.cdb.rdb.RdbReader
- All Implemented Interfaces:
CdbReader
Deprecated.
Read CDB configuration from RDB.
- Author:
- acaproni
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Read the ASCE configuration from the CDB.Deprecated.Get the IDs of the ASCEs.Deprecated.Return the ASCEs belonging to the given DASU.Deprecated.Get the configuraton of the client with the passed identifier.Deprecated.Deprecated.Read the DASU configuration from the CDB.Deprecated.Get the IDs of the DASUs.Deprecated.Return the DASUs belonging to the given Supervisor.getIas()
Deprecated.Get the Ias configuration from a file.Deprecated.Get the IASIO with the given IDDeprecated.Get the IASIOs.Deprecated.Return the IASIOs in input to the given ASCE.Deprecated.Get the configuration of the plugin with the passed identifier.Deprecated.getSupervisor
(String id) Deprecated.Read the supervisor configuration from the CDB.Deprecated.Get the IDs of the Supervisors.getTemplate
(String template_id) Deprecated.Read the template configuration from the CDB.Deprecated.Return the templated IASIOs in input to the given ASCE.Deprecated.Get the templates.getTransferFunction
(String tf_id) Deprecated.Read the transfer function configuration from the CDB.Deprecated.Get the transfer functions.void
init()
Deprecated.Initialize the CDBvoid
shutdown()
Deprecated.Close the CDB and release the associated resources
-
Constructor Details
-
RdbReader
public RdbReader()Deprecated.
-
-
Method Details
-
getIas
Deprecated.Get the Ias configuration from a file.In the actual implementation there must be one and only one IAS in the RDB so this method fails if gets more then one IAS from the database.
TODO: there is a ticket to change the configuration in order to have more then one IAS with its own unique ID.- Specified by:
getIas
in interfaceCdbReader
- Returns:
- The ias configuration read from the file
- Throws:
IasCdbException
- In case of error getting the IAS- See Also:
-
getIasios
Deprecated.Get the IASIOs.- Specified by:
getIasios
in interfaceCdbReader
- Returns:
- The IASIOs red from the file
- Throws:
IasCdbException
- In case of error getting the IASIOs- See Also:
-
getTemplates
Deprecated.Get the templates.- Specified by:
getTemplates
in interfaceCdbReader
- Returns:
- The templates red from the file
- Throws:
IasCdbException
- In case of error getting the templates- See Also:
-
getTransferFunctions
Deprecated.Get the transfer functions.- Specified by:
getTransferFunctions
in interfaceCdbReader
- Returns:
- The transfer functions read from the file
- Throws:
IasCdbException
- In case of error getting the transfer functions- See Also:
-
getIasio
Deprecated.Get the IASIO with the given ID- Specified by:
getIasio
in interfaceCdbReader
- Parameters:
id
- The ID of the IASIO to read the configuration- Returns:
- The IASIO red from the file
- Throws:
IasCdbException
- In case of error getting the IASIO- See Also:
-
getSupervisor
Deprecated.Read the supervisor configuration from the CDB.- Specified by:
getSupervisor
in interfaceCdbReader
- Parameters:
id
- The not null nor empty supervisor identifier- Returns:
- The Supervisor read from the CDB
- Throws:
IasCdbException
- In case of error getting the Supervisor- See Also:
-
getAsce
Deprecated.Read the ASCE configuration from the CDB.- Specified by:
getAsce
in interfaceCdbReader
- Parameters:
id
- The not null nor empty ASCE identifier- Returns:
- The ASCE read from the file
- Throws:
IasCdbException
- In case of error getting the ASCE- See Also:
-
getTransferFunction
Deprecated.Read the transfer function configuration from the CDB.- Specified by:
getTransferFunction
in interfaceCdbReader
- Parameters:
tf_id
- The notnull
nor empty transfer function identifier- Returns:
- The transfer function red from the CDB
- Throws:
IasCdbException
- in case of error reading from the CDB- See Also:
-
getTemplate
Deprecated.Read the template configuration from the CDB.- Specified by:
getTemplate
in interfaceCdbReader
- Parameters:
template_id
- The notnull
nor empty identifier of the template- Returns:
- The template read from the CDB
- Throws:
IasCdbException
- in case of error reading from the CDB
-
getDasu
Deprecated.Read the DASU configuration from the CDB.- Specified by:
getDasu
in interfaceCdbReader
- Parameters:
id
- The not null nor empty DASU identifier- Returns:
- The DASU read from the file
- Throws:
IasCdbException
- In case of error getting the DASU- See Also:
-
getDasusToDeployInSupervisor
Deprecated.Return the DASUs belonging to the given Supervisor.- Specified by:
getDasusToDeployInSupervisor
in interfaceCdbReader
- Parameters:
id
- The notnull
nor empty identifier of the supervisor- Returns:
- A set of DASUs running in the supervisor with the passed id
- Throws:
IasCdbException
- in case of error reading CDB or if the supervisor with the give identifier does not exist
-
getAscesForDasu
Deprecated.Return the ASCEs belonging to the given DASU.- Specified by:
getAscesForDasu
in interfaceCdbReader
- Parameters:
id
- The notnull
nor empty identifier of the supervisor- Returns:
- A set of DASUs running in the DASU with the passed id
- Throws:
IasCdbException
- in case of error reading CDB or if the DASU with the give identifier does not exist
-
getIasiosForAsce
Deprecated.Return the IASIOs in input to the given ASCE.- Specified by:
getIasiosForAsce
in interfaceCdbReader
- Parameters:
id
- The notnull
nor empty identifier of the ASCE- Returns:
- A set of IASIOs running in the ASCE with the passed id
- Throws:
IasCdbException
- in case of error reading CDB or if the ASCE with the give identifier does not exist
-
getSupervisorIds
Deprecated.Get the IDs of the Supervisors. This method is useful to deploy the supervisors- Specified by:
getSupervisorIds
in interfaceCdbReader
- Returns:
- The the IDs of the supervisors read from the CDB
- Throws:
IasCdbException
- In case of error getting the IDs of the supervisors
-
getDasuIds
Deprecated.Get the IDs of the DASUs.- Specified by:
getDasuIds
in interfaceCdbReader
- Returns:
- The IDs of the DASUs read from the CDB
- Throws:
IasCdbException
- In case of error getting the IDs of the DASUs
-
getAsceIds
Deprecated.Get the IDs of the ASCEs.- Specified by:
getAsceIds
in interfaceCdbReader
- Returns:
- The IDs of the ASCEs read from the CDB
- Throws:
IasCdbException
- In case of error getting the IDs of the ASCEs
-
getTemplateInstancesIasiosForAsce
public Collection<TemplateInstanceIasioDao> getTemplateInstancesIasiosForAsce(String id) throws IasCdbException Deprecated.Return the templated IASIOs in input to the given ASCE. These inputs are the one generated by a different template than that of the ASCE (@see #!@$)- Specified by:
getTemplateInstancesIasiosForAsce
in interfaceCdbReader
- Parameters:
id
- The notnull
nor empty identifier of the ASCE- Returns:
- A set of template instance of IASIOs in input to the ASCE
- Throws:
IasCdbException
- in case of error reading CDB or if the ASCE with the give identifier does not exist
-
getClientConfig
Deprecated.Get the configuraton of the client with the passed identifier. The configuration is passed as a string whose format depends on the client implementation.- Specified by:
getClientConfig
in interfaceCdbReader
- Parameters:
id
- The not null nor empty ID of the IAS client- Returns:
- The configuration of the client
- Throws:
IasCdbException
- In case of error getting the configuration of the client
-
getPlugin
Deprecated.Get the configuration of the plugin with the passed identifier.The configuration of the plugin can be read from a file or from the CDB. In both cases, the configuration is returned as #PluginConfigDao. This m,ethod returns the configuration from the CDB; reading from file is not implemented here.
- Specified by:
getPlugin
in interfaceCdbReader
- Parameters:
id
- The not null nor empty ID of the IAS plugin- Returns:
- The configuration of the plugin
- Throws:
IasCdbException
- In case of error getting the configuration of the plugin
-
getPluginIds
Deprecated.- Specified by:
getPluginIds
in interfaceCdbReader
- Returns:
- The IDs of all the plugins in the CDB
- Throws:
IasCdbException
- In case of error getting the IDs of the plugins
-
getClientIds
Deprecated.- Specified by:
getClientIds
in interfaceCdbReader
- Returns:
- The IDs of all the plugins in the CDB
- Throws:
IasCdbException
- In case of error getting the IDs of the clients
-
init
Deprecated.Initialize the CDB- Specified by:
init
in interfaceCdbReader
- Throws:
IasCdbException
-
shutdown
Deprecated.Close the CDB and release the associated resources- Specified by:
shutdown
in interfaceCdbReader
- Throws:
IasCdbException
-