java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, org.apache.hadoop.yarn.api.ApplicationMasterProtocolOpportunisticContainerAllocatorAMService@Private
public class ApplicationMasterService
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.api.ApplicationMasterProtocol
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ApplicationMasterService.AllocateResponseLock |
| Modifier and Type | Field | Description |
|---|---|---|
protected static Allocation |
EMPTY_ALLOCATION |
|
protected java.net.InetSocketAddress |
masterServiceAddress |
|
protected org.apache.hadoop.yarn.factories.RecordFactory |
recordFactory |
|
protected RMContext |
rmContext |
|
protected org.apache.hadoop.ipc.Server |
server |
| Constructor | Description |
|---|---|
ApplicationMasterService(java.lang.String name,
RMContext rmContext,
YarnScheduler scheduler) |
|
ApplicationMasterService(RMContext rmContext,
YarnScheduler scheduler) |
| Modifier and Type | Method | 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) |
|
java.net.InetSocketAddress |
getBindAddress() |
|
protected org.apache.hadoop.yarn.server.resourcemanager.AMSProcessingChain |
getProcessingChain() |
|
protected java.util.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,
java.net.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 java.net.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(java.lang.String name,
RMContext rmContext,
YarnScheduler scheduler)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected java.util.List<org.apache.hadoop.yarn.ams.ApplicationMasterServiceProcessor> getProcessorList(org.apache.hadoop.conf.Configuration conf)
protected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected org.apache.hadoop.ipc.Server getServer(org.apache.hadoop.yarn.ipc.YarnRPC rpc,
org.apache.hadoop.conf.Configuration serverConf,
java.net.InetSocketAddress addr,
AMRMTokenSecretManager secretManager)
protected org.apache.hadoop.yarn.server.resourcemanager.AMSProcessingChain getProcessingChain()
@Private public java.net.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,
java.io.IOException
registerApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
finishApplicationMaster in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic 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,
java.io.IOException
allocate in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic void registerAppAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
@VisibleForTesting
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 java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exception@VisibleForTesting public org.apache.hadoop.ipc.Server getServer()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.