public class AtsSystemProperties extends Object
| Constructor and Description |
|---|
AtsSystemProperties() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
getAgentDefaultPort() |
static Boolean |
getPropertyAsBoolean(String key)
If key is found and is parsed OK - the wanted value is returned.
If key is found and fail parsing - an error is thrown
If key is not found - null is returned.
|
static Boolean |
getPropertyAsBoolean(String key,
Boolean defaultValue)
If key is found and is parsed OK - the wanted value is returned.
If key is found and fail parsing - default value is returned if provided, otherwise an error is thrown
If key is not found - default value is returned if provided, otherwise null is returned.
|
static Integer |
getPropertyAsNonNegativeNumber(String key)
If key is found and is parsed OK - the wanted value is returned.
If key is found and fail parsing - an error is thrown
If key is not found - null is returned.
|
static Integer |
getPropertyAsNonNegativeNumber(String key,
Integer defaultValue)
If key is found and is parsed OK - the wanted value is returned.
If key is found and fail parsing - default value is returned if provided, otherwise an error is thrown
If key is not found - default value is returned if provided, otherwise null is returned.
|
static Integer |
getPropertyAsNumber(String key)
Return a system property as an integer number.
|
static Integer |
getPropertyAsNumber(String key,
Integer defaultValue)
Return a system property as an integer number
|
static String |
getPropertyAsString(String key)
Return a system property as a String.
|
static String |
getPropertyAsString(String key,
String defaultValue)
Return a system property as a String if existing.
|
static void |
setAgentDefaultPort(int defaultAgentPort) |
public static final int DEFAULT_AGENT_PORT_VALUE
public static final String AGENT_HOME_FOLDER
public static final String AGENT__MONITOR_POLL_INTERVAL
public static final String AGENT__MONITOR_INITIAL_POLL_DELAY
public static final String AGENT__COMPONENTS_FOLDER
public static final String AGENT__TEMPLATE_ACTIONS_PROXY_PROPERTY
public static final String AGENT__REGISTER_FULL_AND_NET_ACTION_TIME_FOR_TEMPLATE_ACTIONS_KEY
public static final String AGENT__TEMPLATE_ACTIONS_FOLDER
public static final String AGENT__TEMPLATE_ACTIONS_MATCH_FILES_BY_SIZE
public static final String AGENT__TEMPLATE_ACTIONS_MATCH_FILES_BY_CONTENT
public static final String LOG__MONITOR_EVENTS_QUEUE
public static final String LOG__CLASSPATH_ON_START
public static final String TEST_HARNESS__JUNIT_RUN_NAME
public static final String TEST_HARNESS__TESTS_SOURCE_LOCATION
public static final String UI_ENGINE__SWING_ROBOT_DELAY_BETWEEN_EVENTS
public static final String CORE__JSCH_VERBOSE_MODE
public static final String SYSTEM_LINE_SEPARATOR
public static final String SYSTEM_FILE_SEPARATOR
public static final String SYSTEM_OS_NAME
public static final String SYSTEM_USER_HOME_DIR
public static final String SYSTEM_USER_TEMP_DIR
public static final String SYSTEM_JAVA_HOME_DIR
public static final String SYSTEM_HTTP_PROXY_HOST
public static final String SYSTEM_HTTP_PROXY_PORT
public static Integer getAgentDefaultPort()
public static void setAgentDefaultPort(int defaultAgentPort)
defaultAgentPort - the new default ATS agent port numberpublic static Integer getPropertyAsNumber(String key)
key - the name of the searched system propertypublic static Integer getPropertyAsNumber(String key, Integer defaultValue)
key - the name of the searched system propertydefaultValue - default value in case the system property does not exist or is invalidpublic static Boolean getPropertyAsBoolean(String key)
key - the name of the searched system propertypublic static Boolean getPropertyAsBoolean(String key, Boolean defaultValue)
key - the name of the searched system propertydefaultValue - default value in case the system property does not exist or is invalidpublic static Integer getPropertyAsNonNegativeNumber(String key)
key - the name of the searched system propertypublic static Integer getPropertyAsNonNegativeNumber(String key, Integer defaultValue)
key - the name of the searched system propertydefaultValue - default value in case the system property does not exist or is invalidpublic static String getPropertyAsString(String key)
key - the name of the searched system propertypublic static String getPropertyAsString(String key, String defaultValue)
key - the name of the searched system propertydefaultValue - default value to return if property not definedCopyright © 2017 Axway Software. All rights reserved.