org.apache.hadoop.conf.Configurable, org.apache.hadoop.yarn.api.ApplicationMasterProtocol, org.apache.hadoop.yarn.server.api.DistributedSchedulingAMProtocol, RequestInterceptorpublic final class DefaultRequestInterceptor extends AbstractRequestInterceptor
| Constructor | Description |
|---|---|
DefaultRequestInterceptor() |
| 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.server.api.protocolrecords.DistributedSchedulingAllocateResponse |
allocateForDistributedScheduling(org.apache.hadoop.yarn.server.api.protocolrecords.DistributedSchedulingAllocateRequest request) |
Default implementation that invokes the distributed scheduling version
of the register method.
|
org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse |
finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) |
|
static org.apache.hadoop.io.Text |
getTokenService(org.apache.hadoop.conf.Configuration conf,
java.lang.String address,
java.lang.String defaultAddr,
int defaultPort) |
|
void |
init(AMRMProxyApplicationContext appContext) |
Initializes the
RequestInterceptor. |
org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse |
registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) |
|
org.apache.hadoop.yarn.server.api.protocolrecords.RegisterDistributedSchedulingAMResponse |
registerApplicationMasterForDistributedScheduling(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) |
Default implementation that invokes the distributed scheduling version
of the allocate method.
|
void |
setNextInterceptor(RequestInterceptor next) |
Sets the
RequestInterceptor in the chain. |
void |
setRMClient(org.apache.hadoop.yarn.api.ApplicationMasterProtocol rmClient) |
getApplicationContext, getConf, getNextInterceptor, getNMStateStore, recover, setConf, shutdownpublic void init(AMRMProxyApplicationContext appContext)
AbstractRequestInterceptorRequestInterceptor.init in interface RequestInterceptorinit in class AbstractRequestInterceptorappContext - AMRMProxy application contextpublic 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
org.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic 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
org.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic org.apache.hadoop.yarn.server.api.protocolrecords.RegisterDistributedSchedulingAMResponse registerApplicationMasterForDistributedScheduling(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
AbstractRequestInterceptorregisterApplicationMasterForDistributedScheduling in interface org.apache.hadoop.yarn.server.api.DistributedSchedulingAMProtocolregisterApplicationMasterForDistributedScheduling in class AbstractRequestInterceptorrequest - ApplicationMaster registration requestorg.apache.hadoop.yarn.exceptions.YarnException - if failsjava.io.IOException - if failspublic org.apache.hadoop.yarn.server.api.protocolrecords.DistributedSchedulingAllocateResponse allocateForDistributedScheduling(org.apache.hadoop.yarn.server.api.protocolrecords.DistributedSchedulingAllocateRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
AbstractRequestInterceptorallocateForDistributedScheduling in interface org.apache.hadoop.yarn.server.api.DistributedSchedulingAMProtocolallocateForDistributedScheduling in class AbstractRequestInterceptorrequest - ApplicationMaster allocate requestorg.apache.hadoop.yarn.exceptions.YarnException - if failsjava.io.IOException - if failspublic 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
org.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic void setNextInterceptor(RequestInterceptor next)
AbstractRequestInterceptorRequestInterceptor in the chain.setNextInterceptor in interface RequestInterceptorsetNextInterceptor in class AbstractRequestInterceptornext - the next interceptor to set@VisibleForTesting public void setRMClient(org.apache.hadoop.yarn.api.ApplicationMasterProtocol rmClient)
@Unstable
public static org.apache.hadoop.io.Text getTokenService(org.apache.hadoop.conf.Configuration conf,
java.lang.String address,
java.lang.String defaultAddr,
int defaultPort)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.