org.apache.hadoop.conf.Configurable, org.apache.hadoop.yarn.api.ApplicationMasterProtocol, org.apache.hadoop.yarn.server.api.DistributedSchedulingAMProtocol, RequestInterceptorDefaultRequestInterceptor, DistributedScheduler, FederationInterceptorpublic abstract class AbstractRequestInterceptor extends java.lang.Object implements RequestInterceptor
| Constructor | Description |
|---|---|
AbstractRequestInterceptor() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
AMRMProxyApplicationContext |
getApplicationContext() |
Gets the
AMRMProxyApplicationContext. |
org.apache.hadoop.conf.Configuration |
getConf() |
Gets the
Configuration. |
RequestInterceptor |
getNextInterceptor() |
Gets the next
RequestInterceptor in the chain. |
NMStateStoreService |
getNMStateStore() |
A helper method for getting NM state store.
|
void |
init(AMRMProxyApplicationContext appContext) |
Initializes the
RequestInterceptor. |
void |
recover(java.util.Map<java.lang.String,byte[]> recoveredDataMap) |
Recover
RequestInterceptor state from store. |
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 |
setConf(org.apache.hadoop.conf.Configuration conf) |
Sets the
Configuration. |
void |
setNextInterceptor(RequestInterceptor nextInterceptor) |
Sets the
RequestInterceptor in the chain. |
void |
shutdown() |
Disposes the
RequestInterceptor. |
public void setNextInterceptor(RequestInterceptor nextInterceptor)
RequestInterceptor in the chain.setNextInterceptor in interface RequestInterceptornextInterceptor - the next interceptor to setpublic void setConf(org.apache.hadoop.conf.Configuration conf)
Configuration.setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
Configuration.getConf in interface org.apache.hadoop.conf.Configurablepublic void init(AMRMProxyApplicationContext appContext)
RequestInterceptor.init in interface RequestInterceptorappContext - AMRMProxy application contextpublic void recover(java.util.Map<java.lang.String,byte[]> recoveredDataMap)
RequestInterceptor state from store.recover in interface RequestInterceptorrecoveredDataMap - states for all interceptors recovered from NMSSpublic void shutdown()
RequestInterceptor.shutdown in interface RequestInterceptorpublic RequestInterceptor getNextInterceptor()
RequestInterceptor in the chain.getNextInterceptor in interface RequestInterceptorpublic AMRMProxyApplicationContext getApplicationContext()
AMRMProxyApplicationContext.getApplicationContext in interface RequestInterceptorpublic 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
allocateForDistributedScheduling in interface org.apache.hadoop.yarn.server.api.DistributedSchedulingAMProtocolrequest - ApplicationMaster allocate requestorg.apache.hadoop.yarn.exceptions.YarnException - if failsjava.io.IOException - if failspublic 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
registerApplicationMasterForDistributedScheduling in interface org.apache.hadoop.yarn.server.api.DistributedSchedulingAMProtocolrequest - ApplicationMaster registration requestorg.apache.hadoop.yarn.exceptions.YarnException - if failsjava.io.IOException - if failspublic NMStateStoreService getNMStateStore()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.