public class AMRMClientRelayer
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.api.ApplicationMasterProtocol
| Constructor and Description |
|---|
AMRMClientRelayer() |
AMRMClientRelayer(org.apache.hadoop.yarn.api.ApplicationMasterProtocol rmClient,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
String rmId) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse |
allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest allocateRequest) |
org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse |
finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) |
protected Map<ResourceRequestSetKey,ResourceRequestSet> |
getRemotePendingAsks() |
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() |
void |
setAMRegistrationRequest(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest registerRequest) |
void |
setRMClient(org.apache.hadoop.yarn.api.ApplicationMasterProtocol client) |
void |
shutdown() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic AMRMClientRelayer()
public AMRMClientRelayer(org.apache.hadoop.yarn.api.ApplicationMasterProtocol rmClient,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
String rmId)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void setAMRegistrationRequest(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest registerRequest)
public void setRMClient(org.apache.hadoop.yarn.api.ApplicationMasterProtocol client)
public void shutdown()
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 org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest allocateRequest)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
allocate in interface org.apache.hadoop.yarn.api.ApplicationMasterProtocolorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionprotected Map<ResourceRequestSetKey,ResourceRequestSet> getRemotePendingAsks()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.