public class ConfigUtils extends Object
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.
|
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()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.