org.jlab.coda.afecs.ui.rcgui
Class DbDriver

java.lang.Object
  extended by org.jlab.coda.afecs.ui.rcgui.DbDriver

public class DbDriver
extends java.lang.Object

JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c), 5/21/11


Constructor Summary
DbDriver(CodaRcGui owner)
           
 
Method Summary
 java.lang.String[] getDbRegisteredRunTypeNames()
          Asks platform administrator to report runTypes recorded in the Coda2 database
 java.lang.String[] getDbRegisteredSessionNames()
          Asks platform administrator to report sessions recorded in the coda2 database
 void getPlatformRegisteredDocs()
          Does cMsg send-and-get to the APlatform agent and gets the registered documents.
 void getPlatformRegisteredRunTypes()
          Does cMsg send and get to the ControlDesigner agent and gets the names of all configuration files in the COOL_HOME/config directory.
 void getPlatformRegisteredSessions()
          Does cMsg send and get to the APlatform agent and gets the registered sessions.
 int[] setAndGetRunNumbers(java.lang.String isCoda2DB, int newRunNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbDriver

public DbDriver(CodaRcGui owner)
Method Detail

getPlatformRegisteredRunTypes

public void getPlatformRegisteredRunTypes()
                                   throws AException
Does cMsg send and get to the ControlDesigner agent and gets the names of all configuration files in the COOL_HOME/config directory. Color cods those runTypes that are running in the current gui selected session.

Throws:
AException

getDbRegisteredRunTypeNames

public java.lang.String[] getDbRegisteredRunTypeNames()
                                               throws AException
Asks platform administrator to report runTypes recorded in the Coda2 database

Returns:
array of strings representing the names of runTypes
Throws:
AException

getPlatformRegisteredSessions

public void getPlatformRegisteredSessions()
                                   throws AException
Does cMsg send and get to the APlatform agent and gets the registered sessions.

Throws:
AException

getDbRegisteredSessionNames

public java.lang.String[] getDbRegisteredSessionNames()
                                               throws AException
Asks platform administrator to report sessions recorded in the coda2 database

Returns:
array of strings representing the names of the sessions recorded in the coda2 database
Throws:
AException

getPlatformRegisteredDocs

public void getPlatformRegisteredDocs()
                               throws AException
Does cMsg send-and-get to the APlatform agent and gets the registered documents.

Throws:
AException

setAndGetRunNumbers

public int[] setAndGetRunNumbers(java.lang.String isCoda2DB,
                                 int newRunNumber)
                          throws AException
Parameters:
isCoda2DB - AConstants.seton or AConstants.setoff
newRunNumber - new value of the run number
Returns:
int array of two elements: first run number from the coda2 DB and the second from the cool db.
Throws:
AException - exception object