public interface FederationAMRMProxyPolicy extends ConfigurableFederationPolicy
ResourceRequests received by the AM among various RMs.| Modifier and Type | Method and Description |
|---|---|
void |
notifyOfResponse(SubClusterId subClusterId,
org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse response)
This method should be invoked to notify the policy about responses being
received.
|
Map<SubClusterId,List<org.apache.hadoop.yarn.api.records.ResourceRequest>> |
splitResourceRequests(List<org.apache.hadoop.yarn.api.records.ResourceRequest> resourceRequests)
Splits the
ResourceRequests from the client across one or more
sub-clusters based on the policy semantics (e.g., broadcast, load-based). |
reinitializeMap<SubClusterId,List<org.apache.hadoop.yarn.api.records.ResourceRequest>> splitResourceRequests(List<org.apache.hadoop.yarn.api.records.ResourceRequest> resourceRequests) throws org.apache.hadoop.yarn.exceptions.YarnException
ResourceRequests from the client across one or more
sub-clusters based on the policy semantics (e.g., broadcast, load-based).resourceRequests - the list of ResourceRequests from the AM to
be splitSubClusterId to the
list of ResourceRequests that should be forwarded to itorg.apache.hadoop.yarn.exceptions.YarnException - in case the request is malformed or no viable
sub-clusters can be found.void notifyOfResponse(SubClusterId subClusterId, org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse response) throws org.apache.hadoop.yarn.exceptions.YarnException
subClusterId - the id of the subcluster sending the notificationresponse - the response received from one of the RMsorg.apache.hadoop.yarn.exceptions.YarnException - in case the response is not validCopyright © 2008–2022 Apache Software Foundation. All rights reserved.