|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.app.loader.GrouperLoaderConfig
public class GrouperLoaderConfig
Field Summary | |
---|---|
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. |
static Map<String,String> |
testConfig
set some test config overrides |
Method Summary | |
---|---|
static boolean |
getPropertyBoolean(String property,
boolean defaultValue)
Get a Grouper configuration parameter as boolean (must be true|t|false|f case-insensitive) |
static int |
getPropertyInt(String property,
int defaultValue)
Get a Grouper configuration parameter an integer |
static String |
getPropertyString(String property)
Get a Grouper configuration parameter. |
static String |
getPropertyString(String property,
boolean required)
Get a Grouper configuration parameter. |
static String |
getPropertyString(String property,
String defaultValue)
Get a Grouper configuration parameter. |
static Properties |
properties()
get all properties including test properties |
static GrouperLoaderDb |
retrieveDbProfile(String name)
get a profile by name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
public static final Map<String,String> testConfig
Method Detail |
---|
public static boolean getPropertyBoolean(String property, boolean defaultValue) throws NumberFormatException
property
- to lookupdefaultValue
- if the property is not there
NumberFormatException
- if cannot convert the value to an Integerpublic static int getPropertyInt(String property, int defaultValue) throws NumberFormatException
property
- to lookupdefaultValue
- of the int if not there
NumberFormatException
- if cannot convert the value to an Integerpublic static String getPropertyString(String property)
String wheel = GrouperLoaderConfig.getProperty("groups.wheel.group");
property
- to lookup
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
public static Properties properties()
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 found
public static GrouperLoaderDb retrieveDbProfile(String name)
name
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |