Spring for Apache Hadoop

org.springframework.yarn.boot.app
Class YarnPushApplication

java.lang.Object
  extended by org.springframework.yarn.boot.app.AbstractClientApplication<YarnPushApplication>
      extended by org.springframework.yarn.boot.app.YarnPushApplication

@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 YarnPushApplication
extends AbstractClientApplication<YarnPushApplication>

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

Pushed 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

Field Summary
 
Fields inherited from class org.springframework.yarn.boot.app.AbstractClientApplication
applicationBaseDir, applicationVersion, appProperties, profiles, sources
 
Constructor Summary
YarnPushApplication()
           
 
Method Summary
 YarnPushApplication configFile(java.lang.String configFileName, java.util.Properties configProperties)
          Associates a new Properties with a name.
protected  YarnPushApplication getThis()
          Gets the instance of this defined by a sub-class.
 void run()
          Run a SpringApplication build by a SpringApplicationBuilder using an empty args.
 void run(java.lang.String... args)
          Run a SpringApplication build by a SpringApplicationBuilder.
 
Methods inherited from class org.springframework.yarn.boot.app.AbstractClientApplication
applicationBaseDir, applicationVersion, appProperties, profiles, sources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnPushApplication

public YarnPushApplication()
Method Detail

configFile

public YarnPushApplication 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 YarnPushApplication for chaining

run

public void run()
Run a SpringApplication build by a SpringApplicationBuilder using an empty args.

See Also:
run(String...)

run

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

Parameters:
args - the Spring Application args

getThis

protected YarnPushApplication getThis()
Description copied from class: AbstractClientApplication
Gets the instance of this defined by a sub-class. Needed for methods in this abstract class to be able to return correct type for method chaining.

Specified by:
getThis in class AbstractClientApplication<YarnPushApplication>
Returns:
the this instance

Spring for Apache Hadoop