@InterfaceAudience.Private
public class ApplicationMasterService
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.api.ApplicationMasterProtocol
| Modifier and Type | Class and Description |
|---|---|
static class |
ApplicationMasterService.AllocateResponseLock |
| Modifier and Type | Field and Description |
|---|---|
protected static Allocation |
EMPTY_ALLOCATION |
protected InetSocketAddress |
masterServiceAddress |
protected org.apache.hadoop.yarn.factories.RecordFactory |
recordFactory |
protected RMContext |
rmContext |
protected org.apache.hadoop.ipc.Server |
server |
| Constructor and Description |
|---|
ApplicationMasterService(RMContext rmContext,
YarnScheduler scheduler) |
ApplicationMasterService(String name,
RMContext rmContext,
YarnScheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse |
allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request) |
org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse |
finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) |
InetSocketAddress |
getBindAddress() |
protected org.apache.hadoop.yarn.server.resourcemanager.AMSProcessingChain |
getProcessingChain() |
protected List<org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor> |
getProcessorList(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.ipc.Server |
getServer() |
protected org.apache.hadoop.ipc.Server |
getServer(org.apache.hadoop.yarn.ipc.YarnRPC rpc,
org.apache.hadoop.conf.Configuration serverConf,
InetSocketAddress addr,
AMRMTokenSecretManager secretManager) |
boolean |
hasApplicationMasterRegistered(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) |
void |
refreshServiceAcls(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.security.authorize.PolicyProvider policyProvider) |
void |
registerAppAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) |
org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse |
registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
protected boolean |
setAttemptLastResponseId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
int lastResponseId) |
void |
unregisterAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected InetSocketAddress masterServiceAddress
protected org.apache.hadoop.ipc.Server server
protected final org.apache.hadoop.yarn.factories.RecordFactory recordFactory
protected final RMContext rmContext
protected static final Allocation EMPTY_ALLOCATION
public ApplicationMasterService(RMContext rmContext, YarnScheduler scheduler)
public ApplicationMasterService(String name, RMContext rmContext, YarnScheduler scheduler)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected List<org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor> getProcessorList(org.apache.hadoop.conf.Configuration conf)
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected org.apache.hadoop.ipc.Server getServer(org.apache.hadoop.yarn.ipc.YarnRPC rpc,
org.apache.hadoop.conf.Configuration serverConf,
InetSocketAddress addr,
AMRMTokenSecretManager secretManager)
protected org.apache.hadoop.yarn.server.resourcemanager.AMSProcessingChain getProcessingChain()
@InterfaceAudience.Private public InetSocketAddress getBindAddress()
public org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
registerApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
finishApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic boolean hasApplicationMasterRegistered(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
appAttemptId - public org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
allocate in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic void registerAppAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
protected boolean setAttemptLastResponseId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
int lastResponseId)
public void unregisterAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
public void refreshServiceAcls(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.security.authorize.PolicyProvider policyProvider)
protected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic org.apache.hadoop.ipc.Server getServer()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.