@Override protected void addReservationQueue(String planQueueName, Queue queue, String currResId) { String leafQueueName = getReservationQueueName(planQueueName, currResId); fs.getQueueManager().getLeafQueue(leafQueueName, true); }
@Override protected AbstractSchedulerPlanFollower createPlanFollower() { FairSchedulerPlanFollower planFollower = new FairSchedulerPlanFollower(); planFollower.init(mClock, scheduler, Collections.singletonList(plan)); return planFollower; }
@Override protected void addReservationQueue(String planQueueName, Queue queue, String currResId) { String leafQueueName = getReservationQueueName(planQueueName, currResId); fs.getQueueManager().getLeafQueue(leafQueueName, true); }
@Override protected AbstractSchedulerPlanFollower createPlanFollower() { FairSchedulerPlanFollower planFollower = new FairSchedulerPlanFollower(); planFollower.init(mClock, scheduler, Collections.singletonList(plan)); return planFollower; }
@Override protected void addReservationQueue(String planQueueName, Queue queue, String currResId) { String leafQueueName = getReservationQueueName(planQueueName, currResId); fs.getQueueManager().getLeafQueue(leafQueueName, true); }
@Override protected void createDefaultReservationQueue(String planQueueName, Queue queue, String defReservationId) { String defReservationQueueName = getReservationQueueName(planQueueName, defReservationId); if (!fs.getQueueManager().exists(defReservationQueueName)) { fs.getQueueManager().getLeafQueue(defReservationQueueName, true); } }
@Override protected void createDefaultReservationQueue(String planQueueName, Queue queue, String defReservationId) { String defReservationQueueName = getReservationQueueName(planQueueName, defReservationId); if (!fs.getQueueManager().exists(defReservationQueueName)) { fs.getQueueManager().getLeafQueue(defReservationQueueName, true); } }
@Override protected void createDefaultReservationQueue(String planQueueName, Queue queue, String defReservationId) { String defReservationQueueName = getReservationQueueName(planQueueName, defReservationId); if (!fs.getQueueManager().exists(defReservationQueueName)) { fs.getQueueManager().getLeafQueue(defReservationQueueName, true); } }
@Override protected Resource getReservationQueueResourceIfExists(Plan plan, ReservationId reservationId) { String reservationQueueName = getReservationQueueName(plan.getQueueName(), reservationId.toString()); FSLeafQueue reservationQueue = fs.getQueueManager().getLeafQueue(reservationQueueName, false); Resource reservationResource = null; if (reservationQueue != null) { reservationResource = reservationQueue.getSteadyFairShare(); } return reservationResource; }
@Override protected Resource getReservationQueueResourceIfExists(Plan plan, ReservationId reservationId) { String reservationQueueName = getReservationQueueName(plan.getQueueName(), reservationId.toString()); FSLeafQueue reservationQueue = fs.getQueueManager().getLeafQueue(reservationQueueName, false); Resource reservationResource = null; if (reservationQueue != null) { reservationResource = reservationQueue.getSteadyFairShare(); } return reservationResource; }
@Override protected Resource getReservationQueueResourceIfExists(Plan plan, ReservationId reservationId) { String reservationQueueName = getReservationQueueName(plan.getQueueName(), reservationId.toString()); FSLeafQueue reservationQueue = fs.getQueueManager().getLeafQueue(reservationQueueName, false); Resource reservationResource = null; if (reservationQueue != null) { reservationResource = reservationQueue.getSteadyFairShare(); } return reservationResource; }