public class PathBasedSystemSettings extends SystemSettings
SystemSettings
except that the settings for PentahoSystem
can
live in an arbitrary location in the file system (i.e. the file does not have to exist in the
PentahoSystem
is specified by the
System
property whose key is SYSTEM_CFG_PATH_KEY
. If this key does not exist in the
System
properties, then this class falls back on the behavior of SystemSettings (i.e. it gets the
system settings from Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_CFG_PATH_KEY
key into System.property containing the path to the file containing settings information for
PentahoSystem . |
PENTAHOSETTINGSFILENAME
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
Constructor and Description |
---|
PathBasedSystemSettings() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAbsolutePath(String path)
Create a String containing the complete path to the system folder in the repository, and append the parameter
path to it. |
org.dom4j.Document |
getSettingsDocumentFromFile(File f) |
String |
getSystemCfgSourceName() |
String |
getSystemSetting(String settingName,
String defaultValue) |
List |
getSystemSettings(String settingName) |
getLogger, getSystemSetting, getSystemSettings, getSystemSettingsDocument, getSystemSettingsProperties, resetSettingsCache
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
public static final String SYSTEM_CFG_PATH_KEY
PentahoSystem
.public String getSystemSetting(String settingName, String defaultValue)
getSystemSetting
in interface ISystemSettings
getSystemSetting
in class SystemSettings
public List getSystemSettings(String settingName)
getSystemSettings
in interface ISystemSettings
getSystemSettings
in class SystemSettings
protected String getAbsolutePath(String path)
SystemSettings
path
to it.getAbsolutePath
in class SystemSettings
path
- String containing the path of a file relative to the system folder in the repositorypublic String getSystemCfgSourceName()
getSystemCfgSourceName
in interface ISystemSettings
getSystemCfgSourceName
in class SystemSettings
public org.dom4j.Document getSettingsDocumentFromFile(File f) throws IOException, org.dom4j.DocumentException
getSettingsDocumentFromFile
in class SystemSettings
IOException
org.dom4j.DocumentException
Copyright © 2017 Hitachi Vantara. All rights reserved.