public class ConfigUtils extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
BOOLEAN_DEFAULT |
static float |
FLOAT_DEFAULT |
static int |
INT_DEFAULT |
static long |
LONG_DEFAULT |
static String |
OOZIE_HTTP_HOSTNAME |
static String |
OOZIE_HTTP_PORT |
static String |
OOZIE_HTTPS_ENABLED |
static String |
OOZIE_HTTPS_PORT |
static String |
STRING_DEFAULT |
Constructor and Description |
---|
ConfigUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getOozieEffectiveUrl()
Returns the HTTP or HTTPS URL for this Oozie server depending on which is actually configured
|
static String |
getOozieURL(boolean secure)
Returns the HTTP or HTTPS URL for this Oozie server
(http://HOSTNAME:HTTP_PORT/oozie or https://HOSTNAME:HTTPS_PORT/oozie)
|
static boolean |
getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf,
String newName,
String oldName,
boolean defaultValue)
Fetches a property using both a deprecated name and the new name.
|
static String |
getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf,
String newName,
String oldName,
String defaultValue)
Fetches a property using both a deprecated name and the new name.
|
static boolean |
isBackwardSupportForCoordStatus() |
public static final String OOZIE_HTTPS_ENABLED
public static final String OOZIE_HTTP_HOSTNAME
public static final String OOZIE_HTTPS_PORT
public static final String OOZIE_HTTP_PORT
public static boolean BOOLEAN_DEFAULT
public static String STRING_DEFAULT
public static int INT_DEFAULT
public static float FLOAT_DEFAULT
public static long LONG_DEFAULT
public ConfigUtils()
public static String getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf, String newName, String oldName, String defaultValue)
conf
- configuration object.newName
- new property name.oldName
- deprecated property name.defaultValue
- default value.public static boolean getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf, String newName, String oldName, boolean defaultValue)
conf
- configuration object.newName
- new property name.oldName
- deprecated property name.defaultValue
- default value.public static String getOozieURL(boolean secure)
secure
- true to return the HTTPS URL or false to return the HTTP URLpublic static String getOozieEffectiveUrl()
public static boolean isBackwardSupportForCoordStatus()
Copyright © 2018 Apache Software Foundation. All rights reserved.