org.springframework.yarn.boot.support
Class SpringYarnBootUtils
java.lang.Object
org.springframework.yarn.boot.support.SpringYarnBootUtils
public final class SpringYarnBootUtils
- extends java.lang.Object
Utilities for Spring Yarn Boot.
- Author:
- Janne Valkealahti
Method Summary |
static void |
addApplicationListener(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.util.Properties properties)
|
static void |
addConfigFilesContents(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.util.Map<java.lang.String,java.util.Properties> configFilesContents)
|
static void |
addProfiles(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.lang.String[] additionalProfiles)
|
static void |
addSources(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.lang.Object[] sources)
|
static void |
appendAsCommaDelimitedIntoProperties(java.lang.String key,
java.lang.String[] values,
java.util.Properties properties)
|
static void |
mergeBootArgumentsIntoMap(java.lang.String[] args,
java.util.Map map)
|
static void |
mergeHadoopPropertyIntoMap(org.apache.hadoop.conf.Configuration configuration,
java.lang.String configurationKey,
java.lang.String propertyKey,
java.util.Map map)
|
static java.lang.String[] |
propertiesToBootArguments(java.util.Properties properties)
|
static java.lang.String |
resolveApplicationdir(SpringYarnProperties syp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mergeBootArgumentsIntoMap
public static void mergeBootArgumentsIntoMap(java.lang.String[] args,
java.util.Map map)
mergeHadoopPropertyIntoMap
public static void mergeHadoopPropertyIntoMap(org.apache.hadoop.conf.Configuration configuration,
java.lang.String configurationKey,
java.lang.String propertyKey,
java.util.Map map)
propertiesToBootArguments
public static java.lang.String[] propertiesToBootArguments(java.util.Properties properties)
appendAsCommaDelimitedIntoProperties
public static void appendAsCommaDelimitedIntoProperties(java.lang.String key,
java.lang.String[] values,
java.util.Properties properties)
addApplicationListener
public static void addApplicationListener(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.util.Properties properties)
addProfiles
public static void addProfiles(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.lang.String[] additionalProfiles)
addSources
public static void addSources(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.lang.Object[] sources)
addConfigFilesContents
public static void addConfigFilesContents(org.springframework.boot.builder.SpringApplicationBuilder builder,
java.util.Map<java.lang.String,java.util.Properties> configFilesContents)
resolveApplicationdir
public static java.lang.String resolveApplicationdir(SpringYarnProperties syp)