public abstract class ApplicationMasterBase extends Object implements org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler
| Constructor and Description |
|---|
ApplicationMasterBase() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createCommand() |
String |
getClassPathEnv() |
int |
getMemory() |
float |
getProgress() |
protected abstract Class |
getTaskClass() |
void |
onContainersAllocated(List<org.apache.hadoop.yarn.api.records.Container> containers) |
void |
onContainersCompleted(List<org.apache.hadoop.yarn.api.records.ContainerStatus> statuses) |
void |
onError(Throwable e) |
void |
onNodesUpdated(List<org.apache.hadoop.yarn.api.records.NodeReport> updatedNodes) |
void |
onShutdownRequest() |
protected void |
run(String[] args) |
public void onContainersCompleted(List<org.apache.hadoop.yarn.api.records.ContainerStatus> statuses)
onContainersCompleted in interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandlerpublic void onContainersAllocated(List<org.apache.hadoop.yarn.api.records.Container> containers)
onContainersAllocated in interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandlerprotected String createCommand()
public int getMemory()
public String getClassPathEnv()
protected abstract Class getTaskClass()
public void onShutdownRequest()
onShutdownRequest in interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandlerpublic void onNodesUpdated(List<org.apache.hadoop.yarn.api.records.NodeReport> updatedNodes)
onNodesUpdated in interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandlerpublic float getProgress()
getProgress in interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandlerpublic void onError(Throwable e)
onError in interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandlerCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.