public class LaunchedApplication extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.yarn.api.records.ApplicationId |
applicationId |
protected SliderYarnClientImpl |
yarnClient |
| Constructor and Description |
|---|
LaunchedApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
SliderYarnClientImpl yarnClient) |
LaunchedApplication(SliderYarnClientImpl yarnClient,
org.apache.hadoop.yarn.api.records.ApplicationReport report) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
forceKill(String reason)
Kill the submitted application by sending a call to the ASM
|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId() |
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport()
Get the application report of this application
|
org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse |
kill(String reason)
Kill the application
|
org.apache.hadoop.yarn.api.records.ApplicationReport |
monitorAppToState(org.apache.hadoop.yarn.api.records.YarnApplicationState desiredState,
Duration duration)
Monitor the submitted application for reaching the requested state.
|
protected final org.apache.hadoop.yarn.api.records.ApplicationId applicationId
protected final SliderYarnClientImpl yarnClient
public LaunchedApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
SliderYarnClientImpl yarnClient)
public LaunchedApplication(SliderYarnClientImpl yarnClient, org.apache.hadoop.yarn.api.records.ApplicationReport report)
public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
public org.apache.hadoop.yarn.api.records.ApplicationReport monitorAppToState(org.apache.hadoop.yarn.api.records.YarnApplicationState desiredState,
Duration duration)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
duration - how long to wait -must be more than 0desiredState - desired state.org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic boolean forceKill(String reason) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse kill(String reason) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException - YARN problemsIOException - IO problemspublic org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.