org.lexevs.system.constants
Class SystemVariables

java.lang.Object
  extended by org.lexevs.system.constants.SystemVariables

public class SystemVariables
extends java.lang.Object

This class reads and provides access to values specified in the configuration file.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust

Field Summary
static java.lang.String CONFIG_FILE_NAME
           
 
Constructor Summary
SystemVariables(Logger logger)
           
SystemVariables(Logger logger, java.util.Properties props)
           
 
Method Summary
static void debugEnableOverride()
           
static void debugEnableOverrideRemove()
           
 boolean emailErrors()
           
 java.lang.String getAutoLoadDBDriver()
           
 java.lang.String getAutoLoadDBParameters()
           
 java.lang.String getAutoLoadDBPassword()
           
 java.lang.String getAutoLoadDBPrefix()
           
 java.lang.String getAutoLoadDBURL()
           
 java.lang.String getAutoLoadDBUsername()
           
 java.lang.String getAutoLoadIndexLocation()
           
 java.lang.String getAutoLoadRegistryPath()
           
 boolean getAutoLoadSingleDBMode()
          Deprecated. 
 int getCacheSize()
           
 java.lang.String getConfigFileLocation()
          If the configuration was loaded from a properties file - this will have the path of the properties file.
 java.lang.String getCurrentPersistenceScheme()
           
 java.lang.String getEmailTo()
           
 int getEraseLogsAfter()
           
 java.lang.String getHistoryDBSchema()
           
 java.util.HashSet<java.lang.String> getIndexLocations()
           
 boolean getIsSingleIndex()
           
 int getIteratorIdleTime()
           
 java.lang.String[] getJarFileLocations()
           
 java.lang.String getLogChange()
           
 java.lang.String getLogLocation()
           
 int getLuceneMaxClauseCount()
           
 int getMaxConnectionsPerDB()
           
 int getMaxResultSize()
           
static java.lang.String getMetaDataIndexName()
           
 java.lang.String getNormConfigFile()
           
 boolean getOverrideSingleDbMode()
           
 java.lang.String getPrimaryKeyStrategy()
           
 java.lang.String getSMTPServer()
           
 java.util.Hashtable<java.lang.String,SQLConnectionInfo> getSqlServers()
           
 boolean isAPILoggingEnabled()
           
static boolean isDebugEnabled()
           
 boolean isMigrateOnStartupEnabled()
           
 boolean isNormEnabled()
           
 boolean isSingleTableMode()
           
 boolean isSQLLoggingEnabled()
           
 void setPrimaryKeyStrategy(java.lang.String primaryKeyStrategy)
           
 void setSQLLoggingEnabled(boolean isSQLLoggingEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE_NAME

public static java.lang.String CONFIG_FILE_NAME
Constructor Detail

SystemVariables

public SystemVariables(Logger logger)
                throws java.lang.Exception
Throws:
java.lang.Exception

SystemVariables

public SystemVariables(Logger logger,
                       java.util.Properties props)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getEraseLogsAfter

public int getEraseLogsAfter()
Returns:
the eraseLogsAfter

getLogChange

public java.lang.String getLogChange()
Returns:
the logChange

getEmailTo

public java.lang.String getEmailTo()
Returns:
the emailTo

emailErrors

public boolean emailErrors()
Returns:
the emailErrors

getSMTPServer

public java.lang.String getSMTPServer()
Returns:
the sMTPServer Address.

isDebugEnabled

public static boolean isDebugEnabled()

debugEnableOverride

public static void debugEnableOverride()

debugEnableOverrideRemove

public static void debugEnableOverrideRemove()

isNormEnabled

public boolean isNormEnabled()

getNormConfigFile

public java.lang.String getNormConfigFile()

getMetaDataIndexName

public static java.lang.String getMetaDataIndexName()

getSqlServers

public java.util.Hashtable<java.lang.String,SQLConnectionInfo> getSqlServers()

getIndexLocations

public java.util.HashSet<java.lang.String> getIndexLocations()

getMaxConnectionsPerDB

public int getMaxConnectionsPerDB()

getCacheSize

public int getCacheSize()

getAutoLoadIndexLocation

public java.lang.String getAutoLoadIndexLocation()
Returns:
the autoLoadIndexLocation

getAutoLoadDBDriver

public java.lang.String getAutoLoadDBDriver()
Returns:
the autoLoadDBDriver

getAutoLoadDBParameters

public java.lang.String getAutoLoadDBParameters()
Returns:
the autoLoadDBParameters

getAutoLoadDBPassword

public java.lang.String getAutoLoadDBPassword()
Returns:
the autoLoadDBPassword

getOverrideSingleDbMode

public boolean getOverrideSingleDbMode()

getAutoLoadDBPrefix

public java.lang.String getAutoLoadDBPrefix()
Returns:
the autoLoadDBPrefix

getAutoLoadDBURL

public java.lang.String getAutoLoadDBURL()
Returns:
the autoLoadDBURL

getAutoLoadDBUsername

public java.lang.String getAutoLoadDBUsername()
Returns:
the autoLoadDBUsername

getAutoLoadRegistryPath

public java.lang.String getAutoLoadRegistryPath()
Returns:
the autoLoadRegistryPath

getLogLocation

public java.lang.String getLogLocation()
Returns:
the logLocation

getConfigFileLocation

public java.lang.String getConfigFileLocation()
If the configuration was loaded from a properties file - this will have the path of the properties file.

Returns:

getIteratorIdleTime

public int getIteratorIdleTime()
Returns:
the iteratorIdleTime

getMaxResultSize

public int getMaxResultSize()
Returns:
the maxResultSize

isSingleTableMode

public boolean isSingleTableMode()

getAutoLoadSingleDBMode

@Deprecated
public boolean getAutoLoadSingleDBMode()
Deprecated. 


getJarFileLocations

public java.lang.String[] getJarFileLocations()

getHistoryDBSchema

public java.lang.String getHistoryDBSchema()

isAPILoggingEnabled

public boolean isAPILoggingEnabled()
Returns:
the isAPILoggingEnabled

isSQLLoggingEnabled

public boolean isSQLLoggingEnabled()

isMigrateOnStartupEnabled

public boolean isMigrateOnStartupEnabled()

setSQLLoggingEnabled

public void setSQLLoggingEnabled(boolean isSQLLoggingEnabled)

getLuceneMaxClauseCount

public int getLuceneMaxClauseCount()

setPrimaryKeyStrategy

public void setPrimaryKeyStrategy(java.lang.String primaryKeyStrategy)

getPrimaryKeyStrategy

public java.lang.String getPrimaryKeyStrategy()

getCurrentPersistenceScheme

public java.lang.String getCurrentPersistenceScheme()

getIsSingleIndex

public boolean getIsSingleIndex()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.