org.jlab.coda.afecs.system
Class AConfig

java.lang.Object
  extended by org.jlab.coda.afecs.system.AConfig

public class AConfig
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), Aug 13, 2009

This sigleton class is a source for Afecs platform system parameters, including expid, paltform cMsg and RC domain server parameters. It parses setup.xml file to get platform configuration parameters. In the case file is not found it will assign default values to the Afecs platform system parameters. COOL_HOME environmentla variable is used to access setup.xml platform configuration file.


Method Summary
 java.lang.String getAfecsHome()
           
 java.lang.String getContainerHost()
           
 java.lang.String getContainerName()
           
 java.lang.String getCoolHome()
           
static java.lang.String getCurrentTime()
          Gets the current time and returns string representation of it.
 java.lang.String getDbDriver()
           
 java.lang.String getDbPasswd()
           
 java.lang.String getDbUrl()
           
 java.lang.String getDbUser()
           
static AConfig getInstance()
          This method returns a reference to the single instane of this singleton class
 java.lang.String getLocalHost()
           
 java.lang.String getPlatformDescription()
           
 java.lang.String getPlatformExpid()
           
 java.lang.String getPlatformHost()
           
 java.lang.String getPlatformMulticastUdl()
           
 java.lang.String getPlatformName()
           
 java.lang.String getPlatformRcDomainServerDescription()
           
 java.lang.String getPlatformRcDomainServerName()
           
 java.lang.String getPlatformRcDomainUdl()
           
 int getPlatformRcDomainUdpPort()
           
 java.lang.String getPlatformRcMulticastServerUdl()
           
 int getPlatformTcpDomainPort()
           
 int getPlatformTcpPort()
           
 java.lang.String getPlatformUdl()
           
 int getPlatformUdpPort()
           
 java.lang.String getSession()
           
 java.lang.String toString()
          Friendy printout all parameters, defind for the platform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCurrentTime

public static java.lang.String getCurrentTime()
Gets the current time and returns string representation of it.

Returns:
string representing the current time.

toString

public java.lang.String toString()
Friendy printout all parameters, defind for the platform

Overrides:
toString in class java.lang.Object
Returns:
String representing parameters

getInstance

public static AConfig getInstance()
This method returns a reference to the single instane of this singleton class

Returns:
instance of this class

getCoolHome

public java.lang.String getCoolHome()

getAfecsHome

public java.lang.String getAfecsHome()

getPlatformUdl

public java.lang.String getPlatformUdl()

getPlatformMulticastUdl

public java.lang.String getPlatformMulticastUdl()

getPlatformDescription

public java.lang.String getPlatformDescription()

getContainerName

public java.lang.String getContainerName()

getPlatformName

public java.lang.String getPlatformName()

getPlatformExpid

public java.lang.String getPlatformExpid()

getPlatformHost

public java.lang.String getPlatformHost()

getContainerHost

public java.lang.String getContainerHost()

getPlatformTcpPort

public int getPlatformTcpPort()

getPlatformUdpPort

public int getPlatformUdpPort()

getPlatformRcDomainServerName

public java.lang.String getPlatformRcDomainServerName()

getPlatformRcDomainServerDescription

public java.lang.String getPlatformRcDomainServerDescription()

getPlatformRcDomainUdpPort

public int getPlatformRcDomainUdpPort()

getPlatformRcMulticastServerUdl

public java.lang.String getPlatformRcMulticastServerUdl()

getPlatformRcDomainUdl

public java.lang.String getPlatformRcDomainUdl()

getSession

public java.lang.String getSession()

getDbUrl

public java.lang.String getDbUrl()

getDbDriver

public java.lang.String getDbDriver()

getDbUser

public java.lang.String getDbUser()

getDbPasswd

public java.lang.String getDbPasswd()

getLocalHost

public java.lang.String getLocalHost()

getPlatformTcpDomainPort

public int getPlatformTcpDomainPort()