public class GrouperLoaderConfig extends ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.ConfigFile, ConfigPropertiesCascadeBase.ConfigFileType
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SUBJECT_SOURCE_ID
name of param: default.subject.source.id
if you want queries which do not specify subject source to come from a certain
source, specify here (improves performance so it doesnt search through all sources)
default is 10
|
static String |
LOADER_RETAIN_DB_LOGS_DAYS
name of param: loader.retain.db.logs.days
number of days to retain db logs in table grouperloader_log.
|
static String |
LOADER_THREAD_POOL_SIZE
name of param: loader.thread.pool.size
number of threads in the loader threadpool.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCachedCalculatedValues()
if there are things that are calculated, clear them out (e.g.
|
protected String |
getHierarchyConfigKey()
config key of the hierarchy value
|
protected String |
getMainConfigClasspath()
get the main config classpath, e.g.
|
protected String |
getMainExampleConfigClasspath()
get the example config classpath, e.g.
|
static boolean |
getPropertyBoolean(String property,
boolean defaultValue)
Deprecated.
use GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(property, defaultValue)
|
static int |
getPropertyInt(String property,
int defaultValue)
Deprecated.
GrouperLoaderConfig.retrieveConfig().propertyValueInt(property, defaultValue);
|
static String |
getPropertyString(String property)
Deprecated.
use GrouperLoaderConfig.retrieveConfig().propertyValueString(property, ""); instead
|
static String |
getPropertyString(String property,
boolean required)
Deprecated.
use GrouperLoaderConfig.retrieveConfig().propertyValueStringRequired(property)
|
static String |
getPropertyString(String property,
String defaultValue)
Deprecated.
use retrieveConfig().propertyValueString(property, defaultValue) instead
|
protected String |
getSecondsToCheckConfigKey()
config key of the time in seconds to check config.
|
static GrouperLoaderConfig |
retrieveConfig()
retrieve a config from the config file or from cache
|
static GrouperLoaderDb |
retrieveDbProfile(String name)
get a profile by name.
|
static GrouperLoaderLdapServer |
retrieveLdapProfile(String name)
get a profile by name from grouper-loader.properties
specify the ldap connection with user, pass, url, etc
the string after "ldap." is the name of the connection, and it should not have
spaces or other special chars in it
ldap.personLdap.user
ldap.personLdap.pass
ldap.personLdap.url
|
assertPropertyValueBoolean, assertPropertyValueClass, assertPropertyValueRequired, containsKey, filesNeedReloadingBasedOnContents, getClassInSiblingJar, getTimeToCheckConfigSeconds, internalProperties, logError, logInfo, needToCheckIfFilesNeedReloading, properties, propertiesFromResourceName, propertiesFromResourceName, propertiesHelper, propertiesMap, propertiesOverrideMap, propertiesThreadLocalOverrideMap, propertyNames, propertyValueBoolean, propertyValueBoolean, propertyValueBoolean, propertyValueBooleanRequired, propertyValueInt, propertyValueInt, propertyValueInt, propertyValueIntRequired, propertyValueString, propertyValueString, propertyValueString, propertyValueStringHelper, propertyValueStringRequired, retrieveConfig, retrieveFromConfigFileOrCache, retrieveFromConfigFiles, substituteCommonVars
public static final String LOADER_RETAIN_DB_LOGS_DAYS
public static final String LOADER_THREAD_POOL_SIZE
public static final String DEFAULT_SUBJECT_SOURCE_ID
@Deprecated public static boolean getPropertyBoolean(String property, boolean defaultValue) throws NumberFormatException
property
- to lookupdefaultValue
- if the property is not thereNumberFormatException
- if cannot convert the value to an Integer@Deprecated public static int getPropertyInt(String property, int defaultValue) throws NumberFormatException
property
- to lookupdefaultValue
- of the int if not thereNumberFormatException
- if cannot convert the value to an Integer@Deprecated public static String getPropertyString(String property)
String wheel = GrouperLoaderConfig.getProperty("groups.wheel.group");
property
- to lookup@Deprecated public static String getPropertyString(String property, boolean required)
String wheel = GrouperLoaderConfig.getProperty("groups.wheel.group");
property
- to lookuprequired
- if property is required. if so, exception if not found. if not, null if not found.
note if value is not filled in, but name is there, then still exception if required@Deprecated public static String getPropertyString(String property, String defaultValue)
String wheel = GrouperLoaderConfig.getProperty("groups.wheel.group");
property
- to lookupdefaultValue
- is the value if the property isnt foundpublic static GrouperLoaderDb retrieveDbProfile(String name)
name
- public static GrouperLoaderLdapServer retrieveLdapProfile(String name)
name
- public static GrouperLoaderConfig retrieveConfig()
public void clearCachedCalculatedValues()
ConfigPropertiesCascadeBase
clearCachedCalculatedValues
in class ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.clearCachedCalculatedValues()
protected String getHierarchyConfigKey()
ConfigPropertiesCascadeBase
getHierarchyConfigKey
in class ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.getHierarchyConfigKey()
protected String getMainConfigClasspath()
ConfigPropertiesCascadeBase
getMainConfigClasspath
in class ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.getMainConfigClasspath()
protected String getMainExampleConfigClasspath()
ConfigPropertiesCascadeBase
getMainExampleConfigClasspath
in class ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.getMainExampleConfigClasspath()
protected String getSecondsToCheckConfigKey()
ConfigPropertiesCascadeBase
getSecondsToCheckConfigKey
in class ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.getSecondsToCheckConfigKey()
Copyright © 2016 Internet2. All rights reserved.