Class FairReservationSystem
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.resourcemanager.reservation.AbstractReservationSystem
org.apache.hadoop.yarn.server.resourcemanager.reservation.FairReservationSystem
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,Recoverable,ReservationSystem
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.reservation.AbstractReservationSystem
conf, planStepSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.yarn.api.records.Resourceprotected org.apache.hadoop.yarn.api.records.ResourceGet an existingPlanthat has been initialized.protected org.apache.hadoop.yarn.api.records.ResourcegetPlanQueueCapacity(String planQueueName) protected StringgetPlanQueuePath(String planQueueName) protected ReservationSchedulerConfigurationprotected org.apache.hadoop.yarn.util.resource.ResourceCalculatorprotected QueueMetricsvoidreinitialize(org.apache.hadoop.conf.Configuration conf, RMContext rmContext) Re-initialize theReservationSystem.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.reservation.AbstractReservationSystem
getAdmissionPolicy, getAgent, getAllPlans, getDefaultReservationSystem, getNewReservationId, getPlanFollowerTimeStep, getQueueForReservation, getReplanner, getReservationsACLsManager, initializePlan, recover, serviceInit, serviceStart, serviceStop, setQueueForReservation, setRMContext, synchronizePlanMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
FairReservationSystem
public FairReservationSystem()
-
-
Method Details
-
reinitialize
public void reinitialize(org.apache.hadoop.conf.Configuration conf, RMContext rmContext) throws org.apache.hadoop.yarn.exceptions.YarnException Description copied from interface:ReservationSystemRe-initialize theReservationSystem.- Specified by:
reinitializein interfaceReservationSystem- Overrides:
reinitializein classAbstractReservationSystem- Parameters:
conf- configurationrmContext- current context of theResourceManager- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if initialization of the configured plan fails
-
getReservationSchedulerConfiguration
- Specified by:
getReservationSchedulerConfigurationin classAbstractReservationSystem
-
getResourceCalculator
protected org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator()- Specified by:
getResourceCalculatorin classAbstractReservationSystem
-
getRootQueueMetrics
- Specified by:
getRootQueueMetricsin classAbstractReservationSystem
-
getMinAllocation
protected org.apache.hadoop.yarn.api.records.Resource getMinAllocation()- Specified by:
getMinAllocationin classAbstractReservationSystem
-
getMaxAllocation
protected org.apache.hadoop.yarn.api.records.Resource getMaxAllocation()- Specified by:
getMaxAllocationin classAbstractReservationSystem
-
getPlanQueuePath
- Specified by:
getPlanQueuePathin classAbstractReservationSystem
-
getPlanQueueCapacity
- Specified by:
getPlanQueueCapacityin classAbstractReservationSystem
-
getPlan
Description copied from interface:ReservationSystemGet an existingPlanthat has been initialized.- Specified by:
getPlanin interfaceReservationSystem- Overrides:
getPlanin classAbstractReservationSystem- Parameters:
planName- the name of thePlan- Returns:
- the
Planidentified by name
-