org.lexevs.system.constants
Class SystemVariables
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_FILE_NAME
public static java.lang.String CONFIG_FILE_NAME
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
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()