public class ActionStopSlider extends AsyncAction
ATTR_CHANGES_APP_SIZE, ATTR_HALTS_APP, ATTR_REVIEWS_APP_SIZE, attrs, name| Constructor and Description |
|---|
ActionStopSlider(Exception ex)
Build from an exception.
|
ActionStopSlider(String name)
Simple constructor
|
ActionStopSlider(String name,
int exitCode,
org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalApplicationStatus,
String message)
Stop slider
|
ActionStopSlider(String name,
long delay,
TimeUnit timeUnit,
int exitCode,
org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalApplicationStatus,
String message)
Stop slider
|
ActionStopSlider(TriggerClusterTeardownException ex)
Simple constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(SliderAppMaster appMaster,
QueueAccess queueService,
AppState appState)
Actual application
|
Exception |
getEx() |
int |
getExitCode() |
org.apache.hadoop.yarn.api.records.FinalApplicationStatus |
getFinalApplicationStatus() |
String |
getMessage() |
void |
setExitCode(int exitCode) |
void |
setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalApplicationStatus) |
void |
setMessage(String message) |
String |
toString() |
compareTo, convertAndOffset, getAttrs, getDelay, getNanos, hasAttr, now, setNanospublic ActionStopSlider(String name)
name - action namepublic ActionStopSlider(String name, long delay, TimeUnit timeUnit, int exitCode, org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalApplicationStatus, String message)
name - action namedelay - execution delaytimeUnit - delay time unitexitCode - process exit codefinalApplicationStatus - yarn statusmessage - message for AMpublic ActionStopSlider(String name, int exitCode, org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalApplicationStatus, String message)
name - action nameexitCode - process exit codefinalApplicationStatus - yarn statusmessage - message for AMpublic ActionStopSlider(TriggerClusterTeardownException ex)
ex - teardown exceptionpublic ActionStopSlider(Exception ex)
If the exception implements
ExitCodeProvider then the exit code is extracted from that
ex - exception.public void execute(SliderAppMaster appMaster, QueueAccess queueService, AppState appState) throws Exception
AsyncActionexecute in class AsyncActionIOExceptionExceptionpublic String toString()
toString in class AsyncActionpublic int getExitCode()
public void setExitCode(int exitCode)
public org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
public void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalApplicationStatus)
public String getMessage()
public void setMessage(String message)
public Exception getEx()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.