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(): 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

Attributes

Returns

the map of the ASCEs to run in each DASU

def checkAsce(asceDao: AsceDao): 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

Attributes

Returns

true in case of errors; false otherwise

def checkDasu(dasuDao: DasuDao): 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

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): 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 ascesOfDasus: Set[String]

The IDs of the ASCEs instantiated by all the DASUs

The IDs of the ASCEs instantiated by all the DASUs

Attributes

val duplicatedIdsOfTools: Option[List[String]]
val iasDaoOpt: Option[IasDao]
val iasError: Boolean
val idsOfAsces: Set[String]

The IDs of the ASCEs

The IDs of the ASCEs

Attributes

val idsOfClients: List[String]
val idsOfDasus: Set[String]

The IDs of the DASUs read from the CDB

The IDs of the DASUs read from the CDB

Attributes

val idsOfDasusToDeploy: Set[String]
val idsOfIasios: Set[String]

The IDs of the IASIOs read from the CDB

The IDs of the IASIOs read from the CDB

Attributes

val idsOfPlugins: List[String]
val idsOfSupervisors: Set[String]

The IDs of the supervisors

The IDs of the supervisors

Attributes

val mapOfAsces: Map[String, AsceDao]
val mapOfAscesOfDasus: Map[String, Set[String]]

The IDs of the ASCEs to run in each DASU

The IDs of the ASCEs to run in each DASU

Attributes

val mapOfDasus: Map[String, DasuDao]

The map of DasuDao; the key is the id of the DASU

The map of DasuDao; the key is the id of the DASU

Attributes

val mapOfDasusToDeploy: Map[String, Set[DasuToDeployDao]]

The DASUs to deploy in each Supervisor The key is the ID of the Supervisor

The DASUs to deploy in each Supervisor The key is the ID of the Supervisor

Attributes

val mapOfIasios: Map[String, IasioDao]

The map of IASIOs where the key is the ID of the IASIOs

The map of IASIOs where the key is the ID of the IASIOs

These IASIOs do not take templates into account

Attributes

val mapOfSupervisors: Map[String, SupervisorDao]

Map of Supervisors, the key is the ID of the supervisor

Map of Supervisors, the key is the ID of the supervisor

Attributes

val mapOfTemplates: Map[String, TemplateDao]

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

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

Attributes

val mapOfTfs: Map[String, TransferFunctionDao]

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

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

Attributes

val reader: CdbReader

The reader of the JSON of RDB CDB

The reader of the JSON of RDB CDB

Attributes

val tryDasuWithCycles: Try[Iterable[String]]