@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,org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration.class,org.springframework.boot.actuate.autoconfigure.EndpointMBeanExportAutoConfiguration.class,org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration.class}) public class YarnInfoApplication extends AbstractClientApplication<java.lang.String,YarnInfoApplication>
Modifier and Type | Class and Description |
---|---|
static class |
YarnInfoApplication.Operation |
static class |
YarnInfoApplication.OperationProperties |
applicationBaseDir, applicationVersion, appProperties, profiles, sources
Constructor and Description |
---|
YarnInfoApplication() |
Modifier and Type | Method and Description |
---|---|
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 . |
applicationBaseDir, applicationVersion, appProperties, profiles, sources
public java.lang.String run()
SpringApplication
build by a
SpringApplicationBuilder
using an empty args.run
in interface ClientApplicationRunner<java.lang.String>
run
in class AbstractClientApplication<java.lang.String,YarnInfoApplication>
run(String...)
public java.lang.String run(java.lang.String... args)
SpringApplication
build by a SpringApplicationBuilder
.run
in interface ClientApplicationRunner<java.lang.String>
run
in class AbstractClientApplication<java.lang.String,YarnInfoApplication>
args
- the Spring Application argsprotected java.lang.String getInstalledReport(org.springframework.context.ApplicationContext context) throws java.lang.Exception
context
- the application contextjava.lang.Exception
- the exceptionprotected java.lang.String getSubmittedReport(YarnClient client, boolean verbose, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> headers)
client
- the clientverbose
- the verbosetype
- the typeheaders
- the headersprotected YarnInfoApplication getThis()
AbstractClientApplication
getThis
in class AbstractClientApplication<java.lang.String,YarnInfoApplication>