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
Constructors -
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.voidinit()Deprecated.Initialize the CDBvoidshutdown()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:
getIasin 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:
getIasiosin 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:
getTemplatesin 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:
getTransferFunctionsin 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:
getIasioin 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:
getSupervisorin 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:
getAscein 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:
getTransferFunctionin interfaceCdbReader- Parameters:
tf_id- The notnullnor 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:
getTemplatein interfaceCdbReader- Parameters:
template_id- The notnullnor 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:
getDasuin 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:
getDasusToDeployInSupervisorin interfaceCdbReader- Parameters:
id- The notnullnor 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:
getAscesForDasuin interfaceCdbReader- Parameters:
id- The notnullnor 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:
getIasiosForAscein interfaceCdbReader- Parameters:
id- The notnullnor 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:
getSupervisorIdsin 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:
getDasuIdsin 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:
getAsceIdsin 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:
getTemplateInstancesIasiosForAscein interfaceCdbReader- Parameters:
id- The notnullnor 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:
getClientConfigin 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:
getPluginin 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:
getPluginIdsin 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:
getClientIdsin 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:
initin interfaceCdbReader- Throws:
IasCdbException
-
shutdown
Deprecated.Close the CDB and release the associated resources- Specified by:
shutdownin interfaceCdbReader- Throws:
IasCdbException
-