AllocateResponse ApplicationMaster::allocate(list<ResourceRequest> &asks, list<ContainerId> &releases, ResourceBlacklistRequest &blacklistRequest, int32_t responseId, float progress) { AllocateRequest request; request.setAsks(asks); request.setReleases(releases); request.setBlacklistRequest(blacklistRequest); request.setResponseId(responseId); request.setProgress(progress); return ((ApplicationMasterProtocol*) rmClient)->allocate(request); }
AllocateResponse ApplicationMaster::allocate(list<ResourceRequest> &asks, list<ContainerId> &releases, ResourceBlacklistRequest &blacklistRequest, int32_t responseId, float progress) { AllocateRequest request; AllocateResponse response; request.setAsks(asks); request.setReleases(releases); request.setBlacklistRequest(blacklistRequest); request.setResponseId(responseId); request.setProgress(progress); RESOURCEMANAGER_SCHEDULER_HA_RETRY_BEGIN(); response = appMasterProto->allocate(request); RESOURCEMANAGER_SCHEDULER_HA_RETRY_END(); return response; }