public abstract class RMCommunicator extends org.apache.hadoop.yarn.service.AbstractService implements RMHeartbeatHandler
| Modifier and Type | Field and Description |
|---|---|
protected Thread |
allocatorThread |
protected Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> |
applicationACLs |
protected org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
applicationAttemptId |
protected org.apache.hadoop.yarn.api.records.ApplicationId |
applicationId |
protected org.apache.hadoop.yarn.event.EventHandler |
eventHandler |
protected boolean |
isSignalled |
protected int |
lastResponseID |
protected org.apache.hadoop.yarn.api.AMRMProtocol |
scheduler |
| Constructor and Description |
|---|
RMCommunicator(ClientService clientService,
AppContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.yarn.api.AMRMProtocol |
createSchedulerProxy() |
protected float |
getApplicationProgress()
Get the appProgress.
|
protected AppContext |
getContext() |
protected Job |
getJob() |
long |
getLastHeartbeatTime() |
protected org.apache.hadoop.yarn.api.records.Resource |
getMaxContainerCapability() |
protected org.apache.hadoop.yarn.api.records.Resource |
getMinContainerCapability() |
protected abstract void |
heartbeat() |
void |
init(org.apache.hadoop.conf.Configuration conf) |
protected void |
register() |
void |
runOnNextHeartbeat(Runnable callback) |
void |
setShouldUnregister(boolean shouldUnregister) |
void |
setSignalled(boolean isSignalled) |
void |
start() |
protected void |
startAllocatorThread() |
void |
stop() |
protected void |
unregister() |
protected org.apache.hadoop.yarn.api.records.ApplicationId applicationId
protected org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId
protected Thread allocatorThread
protected org.apache.hadoop.yarn.event.EventHandler eventHandler
protected org.apache.hadoop.yarn.api.AMRMProtocol scheduler
protected int lastResponseID
protected Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> applicationACLs
protected volatile boolean isSignalled
public RMCommunicator(ClientService clientService, AppContext context)
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.AbstractServicepublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.AbstractServiceprotected AppContext getContext()
protected Job getJob()
protected float getApplicationProgress()
protected void register()
protected void unregister()
protected org.apache.hadoop.yarn.api.records.Resource getMinContainerCapability()
protected org.apache.hadoop.yarn.api.records.Resource getMaxContainerCapability()
public void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.AbstractServiceprotected void startAllocatorThread()
protected org.apache.hadoop.yarn.api.AMRMProtocol createSchedulerProxy()
public long getLastHeartbeatTime()
getLastHeartbeatTime in interface RMHeartbeatHandlerpublic void runOnNextHeartbeat(Runnable callback)
runOnNextHeartbeat in interface RMHeartbeatHandlerpublic void setShouldUnregister(boolean shouldUnregister)
public void setSignalled(boolean isSignalled)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.