public final class DefaultRequestInterceptor extends AbstractRequestInterceptor
Constructor and Description |
---|
DefaultRequestInterceptor() |
Modifier and Type | Method and 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) |
void |
init(AMRMProxyApplicationContext appContext)
Initializes the
RequestInterceptor . |
org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse |
registerApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest request) |
void |
setNextInterceptor(RequestInterceptor next)
Sets the
RequestInterceptor in the chain. |
void |
setRMClient(org.apache.hadoop.yarn.api.ApplicationMasterProtocol rmClient) |
getApplicationContext, getConf, getNextInterceptor, setConf, shutdown
public void init(AMRMProxyApplicationContext appContext)
AbstractRequestInterceptor
RequestInterceptor
.init
in interface RequestInterceptor
init
in class AbstractRequestInterceptor
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
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finishApplicationMaster(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public void setNextInterceptor(RequestInterceptor next)
AbstractRequestInterceptor
RequestInterceptor
in the chain.setNextInterceptor
in interface RequestInterceptor
setNextInterceptor
in class AbstractRequestInterceptor
public void setRMClient(org.apache.hadoop.yarn.api.ApplicationMasterProtocol rmClient)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.