Platform Registration Database

COOL database

For current version of Afecs (version-3.0) agent registration database is implemented as a set of files residing in the $COOL_HOME directory.

 

controlSessions.xml

controlSessions.xml file stores information about the registered run control sessions. The name of the runType with the corresponding run-number, running and active in the specific run control session is stored. Below is an example of the controlSessions.xml file:
<control>
   <session>
      <name>EmuTest</name>
      <config>Emu</config>
      <runnumber>37</runnumber>
   </session>
   <session>
      <name>rctest</name>
      <config>ROC2_DP</config>
      <runnumber>1611</runnumber>
   </session>
</control>

 

clientRegistration.xml

clientRegistration.xml file contains information on all real world physical clients registered with the Afecs platform. Any time a new clients requests representation within the run control platform an in formation about its host and port will be recorded in this file. Below is an example of the clientRegistration.xml file:
<registration>
   <client>
      <name>ROC6</name>
      <hostname>ankaa.jlab.org</hostname>
      <containerhost>ankaa.jlab.org</containerhost>
      <portnumber>45400</portnumber>
   </client>
   <client>
      <name>ROC2</name>
      <hostname>ankaa.jlab.org</hostname>
      <containerhost>ankaa.jlab.org</containerhost>
      <portnumber>45400</portnumber>
   </client>
   <client>
      <name>EB1</name>
      <hostname>ankaa.jlab.org</hostname>
      <containerhost>ankaa.jlab.org</containerhost>
      <portnumber>45401</portnumber>
   </client>
   <client>
      <name>ER1</name>
      <hostname>ankaa.jlab.org</hostname>
      <containerhost>ankaa.jlab.org</containerhost>
      <portnumber>45402</portnumber>
   </client>
</registration>