|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.boot.app.AbstractClientApplication<T>
T - the type of a sub-classpublic abstract class AbstractClientApplication<T extends AbstractClientApplication<T>>
Base class for client applications.
| Field Summary | |
|---|---|
protected java.lang.String |
applicationBaseDir
|
protected java.lang.String |
applicationVersion
|
protected java.util.Properties |
appProperties
|
protected java.util.List<java.lang.String> |
profiles
|
protected java.util.List<java.lang.Object> |
sources
|
| Constructor Summary | |
|---|---|
AbstractClientApplication()
|
|
| Method Summary | |
|---|---|
T |
applicationBaseDir(java.lang.String applicationBaseDir)
Sets an Applications base directory to be used by a builder. |
T |
applicationVersion(java.lang.String applicationVersion)
Sets an application version to be used by a builder. |
T |
appProperties(java.util.Properties appProperties)
Sets application properties which will be passed into a Spring Boot environment. |
protected abstract T |
getThis()
Gets the instance of this defined by a sub-class. |
T |
profiles(java.lang.String... profiles)
Sets an additional profiles to be used when running an SpringApplication. |
T |
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 |
| Field Detail |
|---|
protected java.lang.String applicationVersion
protected java.lang.String applicationBaseDir
protected java.util.List<java.lang.Object> sources
protected java.util.List<java.lang.String> profiles
protected java.util.Properties appProperties
| Constructor Detail |
|---|
public AbstractClientApplication()
| Method Detail |
|---|
public T applicationVersion(java.lang.String applicationVersion)
applicationVersion - the application version
public T applicationBaseDir(java.lang.String applicationBaseDir)
applicationBaseDir - the applications base directory
public T sources(java.lang.Object... sources)
SpringApplication.
sources - the additional sources for Spring Application
public T profiles(java.lang.String... profiles)
SpringApplication.
profiles - the additional profiles for Spring Application
public T appProperties(java.util.Properties appProperties)
Effectively this means that these properties allow to override all
existing properties but still doesn't override properties based on
command-line arguments. Command-line arguments in this context are the
ones passed to run method in a sub-class.
appProperties - the app properties
protected abstract T getThis()
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||