org.apache.hadoop.yarn.server.resourcemanager
Class ApplicationMasterService
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.yarn.server.resourcemanager.ApplicationMasterService
- All Implemented Interfaces:
- org.apache.hadoop.yarn.api.AMRMProtocol, org.apache.hadoop.yarn.service.Service
@InterfaceAudience.Private
public class ApplicationMasterService
- extends org.apache.hadoop.yarn.service.AbstractService
- implements org.apache.hadoop.yarn.api.AMRMProtocol
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
|
Method Summary |
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)
|
void |
init(org.apache.hadoop.conf.Configuration conf)
|
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)
|
void |
start()
|
void |
stop()
|
void |
unregisterAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
|
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
getConfig, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationMasterService
public ApplicationMasterService(RMContext rmContext,
org.apache.hadoop.yarn.security.ApplicationTokenSecretManager appTokenManager,
YarnScheduler scheduler)
init
public void init(org.apache.hadoop.conf.Configuration conf)
- Specified by:
init in interface org.apache.hadoop.yarn.service.Service- Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService
start
public void start()
- Specified by:
start in interface org.apache.hadoop.yarn.service.Service- Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService
registerApplicationMaster
public org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
- Specified by:
registerApplicationMaster in interface org.apache.hadoop.yarn.api.AMRMProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException
finishApplicationMaster
public org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
- Specified by:
finishApplicationMaster in interface org.apache.hadoop.yarn.api.AMRMProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException
allocate
public org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
- Specified by:
allocate in interface org.apache.hadoop.yarn.api.AMRMProtocol
- Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException
registerAppAttempt
public void registerAppAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
unregisterAttempt
public void unregisterAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
refreshServiceAcls
public void refreshServiceAcls(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.security.authorize.PolicyProvider policyProvider)
stop
public void stop()
- Specified by:
stop in interface org.apache.hadoop.yarn.service.Service- Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService
Copyright © 2012 Apache Software Foundation. All Rights Reserved.