Spring for Apache Hadoop

org.springframework.yarn.boot.app
Class YarnInfoApplication

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

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

Generic Spring Yarn Boot application handling reporting.

Author:
Janne Valkealahti

Nested Class Summary
static class YarnInfoApplication.Operation
           
static class YarnInfoApplication.OperationProperties
           
 
Field Summary
 
Fields inherited from class org.springframework.yarn.boot.app.AbstractClientApplication
applicationBaseDir, applicationVersion, appProperties, profiles, sources
 
Constructor Summary
YarnInfoApplication()
           
 
Method Summary
protected  java.lang.String getInstalledReport(org.springframework.context.ApplicationContext context)
          Build the report for installed applications.
protected  java.lang.String getSubmittedReport(YarnClient client, boolean verbose, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> headers)
          Build the report for submitted applications.
protected  YarnInfoApplication getThis()
          Gets the instance of this defined by a sub-class.
 java.lang.String run()
          Run a SpringApplication build by a SpringApplicationBuilder using an empty args.
 java.lang.String 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

YarnInfoApplication

public YarnInfoApplication()
Method Detail

run

public java.lang.String run()
Run a SpringApplication build by a SpringApplicationBuilder using an empty args.

See Also:
run(String...)

run

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

Parameters:
args - the Spring Application args

getInstalledReport

protected java.lang.String getInstalledReport(org.springframework.context.ApplicationContext context)
                                       throws java.lang.Exception
Build the report for installed applications.

Parameters:
context - the application context
Returns:
the installed report
Throws:
java.lang.Exception - the exception

getSubmittedReport

protected java.lang.String getSubmittedReport(YarnClient client,
                                              boolean verbose,
                                              java.lang.String type,
                                              java.util.Map<java.lang.String,java.lang.String> headers)
Build the report for submitted applications.

Parameters:
client - the client
verbose - the verbose
type - the type
headers - the headers
Returns:
the submitted report

getThis

protected YarnInfoApplication 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<YarnInfoApplication>
Returns:
the this instance

Spring for Apache Hadoop