Provides interfaces to the configuration database.

The CDB provides a number of different components that give access to an underlying database. Each service is tailored to meet specific use cases. Each component is made up of two web services, the first only provides a read only interface with the second extending the first and providing a read/write interface. The components of the CDB include:

{@link mice.cdb.service.alarmhandler.AlarmHandler AlarmHandler}
{@link mice.cdb.service.alarmhandler.AlarmHandlerSuperMouse AlarmHandlerSuperMouse}
{@link mice.cdb.service.beamline.Beamline Beamline}
{@link mice.cdb.service.beamline.BeamlineSuperMouse BeamlineSuperMouse}
{@link mice.cdb.service.cabling.Cabling Cabling}
{@link mice.cdb.service.cabling.CablingSuperMouse CablingSuperMouse}
{@link mice.cdb.service.calibration.Calibration Calibration}
{@link mice.cdb.service.calibration.CalibrationSuperMouse CalibrationSuperMouse}
{@link mice.cdb.service.control.Control Control}
{@link mice.cdb.service.control.ControlSuperMouse ControlSuperMouse}
{@link mice.cdb.service.coolingchannel.Coolingchannel Coolingchannel}
{@link mice.cdb.service.coolingchannel.CoolingchannelSuperMouse ControlSuperMouse}
{@link mice.cdb.service.geometry.Geometry Geometry}
{@link mice.cdb.service.geometry.GeometrySuperMouse GeometrySuperMouse}
{@link mice.cdb.service.statemachine.StateMachine StateMachine}
{@link mice.cdb.service.statemachine.StateMachineSuperMouse StateMachineSuperMouse}
{@link mice.cdb.service.target.Target Target}
{@link mice.cdb.service.target.TargetSuperMouse TargetSuperMouse}

The CDB data are made persistent via a relational database. The address of the database is determined from the configuration file cdb.props . The configuration file can be found at MICE_HOME/etc/cdb-server/ , where MICE_HOME is a property passed into the servlet container. By default if MICE_HOME is not set then the value /opt/mice is used. The configuration file should contain the following properties:

db.url
db.name
db.user
db.pwd
db.superUser
db.superPwd

Where db.url is the URL of the database to use, db.name is the name of the database, db.user and db.pwd should point a READ ONLY account for use by the AlarmHandler class and db.superUser and db.superPwd are used by the AlarmHandlerSuperMouse class for READ/WRITE access to the database.

@since 1.0