Interface MutableConfScheduler
- All Superinterfaces:
org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent>,Recoverable,ResourceScheduler,YarnScheduler
- All Known Implementing Classes:
CapacityScheduler
Interface for a scheduler that supports changing configuration at runtime.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationGet the scheduler configuration.Get scheduler's configuration provider, so other classes can directly call mutation APIs on configuration provider.Get queue object based on queue name.booleanReturn whether the scheduler configuration is mutable.Methods inherited from interface org.apache.hadoop.yarn.event.EventHandler
handleMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.recovery.Recoverable
recoverMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler
attemptAllocationOnNode, getNodeIds, reinitialize, resetSchedulerMetrics, setRMContextMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.YarnScheduler
addQueue, allocate, checkAccess, checkAndGetApplicationLifetime, checkAndGetApplicationPriority, getAppResourceUsageReport, getAppsInQueue, getClusterResource, getMaxClusterLevelAppPriority, getMaximumApplicationLifetime, getMaximumResourceCapability, getMaximumResourceCapability, getMinimumResourceCapability, getNodeReport, getNormalizedResource, getNumClusterNodes, getPendingResourceRequestsForAttempt, getPendingSchedulingRequestsForAttempt, getPlanQueues, getQueueInfo, getQueueUserAclInfo, getResourceCalculator, getRMContainer, getRootQueueMetrics, getSchedulerAppInfo, getSchedulerNode, getSchedulingResourceTypes, getTransferredContainers, killAllAppsInQueue, moveAllApps, moveApplication, preValidateMoveApplication, removeQueue, setClusterMaxPriority, setEntitlement, updateApplicationPriority
-
Method Details
-
getConfiguration
org.apache.hadoop.conf.Configuration getConfiguration()Get the scheduler configuration.- Returns:
- the scheduler configuration
-
getQueue
Get queue object based on queue name.- Parameters:
queueName- the queue name- Returns:
- the queue object
-
isConfigurationMutable
boolean isConfigurationMutable()Return whether the scheduler configuration is mutable.- Returns:
- whether scheduler configuration is mutable or not.
-
getMutableConfProvider
MutableConfigurationProvider getMutableConfProvider()Get scheduler's configuration provider, so other classes can directly call mutation APIs on configuration provider.- Returns:
- scheduler's configuration provider
-