public abstract class AbstractBootYarnClusterTests extends AbstractYarnClusterTests
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBootYarnClusterTests.EmptyConfig
Empty Spring @
Configuration
class which can be referenced from tests solely using JavaConfig. |
applicationContext, configuration, yarnClient, yarnCluster| Constructor and Description |
|---|
AbstractBootYarnClusterTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
setYarnClient(YarnClient yarnClient)
Sets the
YarnClient. |
protected ApplicationInfo |
submitApplicationAndWait(java.lang.Object source,
java.lang.String[] args)
Submits application and wait state.
|
protected ApplicationInfo |
submitApplicationAndWait(java.lang.Object source,
java.lang.String[] args,
long timeout,
java.util.concurrent.TimeUnit unit)
Submits application and wait state.
|
protected ApplicationInfo |
submitApplicationAndWaitState(java.lang.Object source,
java.lang.String[] args,
long timeout,
java.util.concurrent.TimeUnit unit,
org.apache.hadoop.yarn.api.records.YarnApplicationState... applicationStates)
Submits application and wait state.
|
getApplicationContext, getConfiguration, getState, getYarnClient, getYarnCluster, killApplication, setApplicationContext, setConfiguration, setYarnCluster, submitApplication, submitApplicationAndWait, submitApplicationAndWait, submitApplicationAndWaitState, waitStatepublic void setYarnClient(YarnClient yarnClient)
AbstractYarnClusterTestsYarnClient.setYarnClient in class AbstractYarnClusterTestsyarnClient - the Yarn clientprotected ApplicationInfo submitApplicationAndWait(java.lang.Object source, java.lang.String[] args) throws java.lang.Exception
source - the boot application config sourceargs - the boot application argsjava.lang.Exception - if exception occurredApplicationInfo,
submitApplicationAndWaitState(Object, String[], long, TimeUnit, YarnApplicationState...)protected ApplicationInfo submitApplicationAndWait(java.lang.Object source, java.lang.String[] args, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.Exception
source - the boot application config sourceargs - the boot application argstimeout - the timeout for waitunit - the unit for timeoutjava.lang.Exception - if exception occurredApplicationInfo,
submitApplicationAndWaitState(Object, String[], long, TimeUnit, YarnApplicationState...)protected ApplicationInfo submitApplicationAndWaitState(java.lang.Object source, java.lang.String[] args, long timeout, java.util.concurrent.TimeUnit unit, org.apache.hadoop.yarn.api.records.YarnApplicationState... applicationStates) throws java.lang.Exception
NULL
if something failed or final known state after the wait/poll operations.
Array of application states can be used to return immediately from wait
loop if state is matched.source - the boot application config sourceargs - the boot application argstimeout - the timeout for waitunit - the unit for timeoutapplicationStates - the application states to waitjava.lang.Exception - if exception occurredApplicationInfo