Spring for Apache Hadoop

org.springframework.yarn.boot.app
Class YarnBootClientInstallApplication

java.lang.Object
  extended by org.springframework.yarn.boot.app.YarnBootClientInstallApplication

@Configuration
@EnableAutoConfiguration(exclude={org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration.class,org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.class,org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration.class,org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.class})
public class YarnBootClientInstallApplication
extends java.lang.Object

Generic Spring Boot client application used to install Spring Yarn Boot based apps into hdfs.

Installed application bundle is merely a collection of files inside a directory. All files in this directory is considered to belong to the bundle and directory should not have any other files or nested directories.

Author:
Janne Valkealahti

Constructor Summary
YarnBootClientInstallApplication()
           
 
Method Summary
 YarnBootClientInstallApplication appId(java.lang.String appId)
          Sets an appid to be used by a builder.
 YarnBootClientInstallApplication applicationsBaseDir(java.lang.String applicationsBaseDir)
          Sets an Applications base directory to be used by a builder.
 YarnBootClientInstallApplication appProperties(java.util.Properties appProperties)
          Sets application properties which will be passed into a Spring Boot environment.
 YarnBootClientInstallApplication configFile(java.lang.String configFileName, java.util.Properties configProperties)
          Associates a new Properties with a name.
 YarnBootClientInstallApplication profiles(java.lang.String... profiles)
          Sets an additional profiles to be used when running an SpringApplication.
 void run(java.lang.String... args)
          Run a SpringApplication build by a SpringApplicationBuilder.
 YarnBootClientInstallApplication sources(java.lang.Object... sources)
          Sets an additional sources to by used when running an SpringApplication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnBootClientInstallApplication

public YarnBootClientInstallApplication()
Method Detail

appId

public YarnBootClientInstallApplication appId(java.lang.String appId)
Sets an appid to be used by a builder.

Parameters:
appId - the appid
Returns:
the YarnBootClientInstallApplication for chaining

applicationsBaseDir

public YarnBootClientInstallApplication applicationsBaseDir(java.lang.String applicationsBaseDir)
Sets an Applications base directory to be used by a builder.

Parameters:
applicationsBaseDir - the applications base directory
Returns:
the YarnBootClientInstallApplication for chaining

sources

public YarnBootClientInstallApplication sources(java.lang.Object... sources)
Sets an additional sources to by used when running an SpringApplication.

Parameters:
sources - the additional sources for Spring Application
Returns:
the YarnBootClientInstallApplication for chaining

profiles

public YarnBootClientInstallApplication profiles(java.lang.String... profiles)
Sets an additional profiles to be used when running an SpringApplication.

Parameters:
profiles - the additional profiles for Spring Application
Returns:
the YarnBootClientInstallApplication for chaining

configFile

public YarnBootClientInstallApplication configFile(java.lang.String configFileName,
                                                   java.util.Properties configProperties)
Associates a new Properties with a name. These properties will be serialised into a common properties format with a given config file name.

Parameters:
configFileName - the config file name
configProperties - the config properties
Returns:
the YarnBootClientInstallApplication for chaining

appProperties

public YarnBootClientInstallApplication appProperties(java.util.Properties appProperties)
Sets application properties which will be passed into a Spring Boot environment. Properties are placed with a priority which is just below command line arguments put above all other properties. Effectively this means that these properties allow to override all existing properties but still doesn't override properties based on command line arguments.

Parameters:
appProperties - the app properties
Returns:
the YarnBootClientInstallApplication for chaining

run

public void run(java.lang.String... args)
Run a SpringApplication build by a SpringApplicationBuilder.

Parameters:
args - the Spring Application args

Spring for Apache Hadoop