CdbChecker

org.eso.ias.cdb.cdbchecker.CdbChecker
See theCdbChecker companion object
class CdbChecker(args: Array[String])

Che CdbChecker checks for problems in the CDB in either JSON or RDB format.

The main task is to check if the graph is -acyclic (@see issue #70) but reports also other problems or inconsistency like unused IASIOs just to give an example. While the RDB is more robust against such problems, the JSON implementation is more weak and this tool could help.

Value parameters

args

the arguments in the command line to open the right CDB

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def buildMapOfAscesOfDasus(dasuIds: Set[String], dasusMap: Map[String, DasuDao]): Map[String, Set[String]]

Build the map of the ASCEs to run in each DASU The key is the ID of the DASU, the value is the set of IDs of ASCEs to run in the DASU

Build the map of the ASCEs to run in each DASU The key is the ID of the DASU, the value is the set of IDs of ASCEs to run in the DASU

Value parameters

dasuIds

The IDs of the DASUs read from the CDB

dasusMap

The map of DasuDao where the key is the ID of the DASU

Attributes

Returns

the map of the ASCEs to run in each DASU

def check(): Boolean

Check for errors

Check for errors

Attributes

Returns

True in case of errors; false otherwise

def checkAsce(asceDao: AsceDao, dasuIds: Set[String], tffsMap: Map[String, TransferFunctionDao], iasioIds: Set[String], templatesMap: Map[String, TemplateDao]): Boolean

Check if there are errors in the ASCE

Check if there are errors in the ASCE

Value parameters

asceDao

The AsceDao to check for error

dasuIds

The IDs of the DASUs read from the CDB

iasioIds

The IDDs of the IASIOs

templatesMap

The map of templates where the key is the ID of the template

ttfsMap

The map of transfer functions: the key is the class of the TF

Attributes

Returns

true in case of errors; false otherwise

def checkDasu(dasuDao: DasuDao, iasioIds: Set[String], templatesMap: Map[String, TemplateDao]): Boolean

Check if there are errors in the DASU

Check if there are errors in the DASU

Value parameters

dasuDao

The DasuDao to check for error

iasioIds

The IDDs of the IASIOs

templatesMap

The map of templates where the key is the ID of the template

Attributes

Returns

true in case of errors; false otherwise

def checkDasuToDeploy(dtd: DasuToDeployDao): Boolean

Check the DasuToDeploy

Check the DasuToDeploy

Attributes

def checkIas(iasDaoOpt: Option[IasDao]): Boolean

Check if the IAS has been defined

Check if the IAS has been defined

Value parameters

iasDaoOpt

the IAS to check

Attributes

Returns

true in case of errors, false otherwise

def checkIasio(iasioDao: IasioDao, templatesMap: Map[String, TemplateDao]): Boolean
def checkTemplate(template: Option[TemplateDao], instance: Option[Integer]): Boolean

Check if the passed template and instance are valid

Check if the passed template and instance are valid

Value parameters

instance

the instance number

template

The template as set in the DASU to deploy for example

Attributes

Returns

false in case of error, true otherwise

Concrete fields

val reader: CdbReader

The reader of the JSON of RDB CDB

The reader of the JSON of RDB CDB

Attributes