Interface CapacitySchedulerContext
- All Known Implementing Classes:
CapacityScheduler
public interface CapacitySchedulerContext
Read-only interface to
CapacityScheduler context.-
Method Summary
Modifier and TypeMethodDescriptiongetApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) org.apache.hadoop.yarn.util.ClockgetClock()Get clock from schedulerorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.conf.ConfigurationgetConf()Get the yarn configuration.longorg.apache.hadoop.yarn.api.records.Priorityorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.api.records.ResourcegetMaximumResourceCapability(String queueName) org.apache.hadoop.yarn.api.records.ResourcegetNode(org.apache.hadoop.yarn.api.records.NodeId nodeId) intorg.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.PendingApplicationComparatororg.apache.hadoop.yarn.util.resource.ResourceCalculatorbooleanReturns if configuration is mutable.
-
Method Details
-
getConfiguration
CapacitySchedulerConfiguration getConfiguration() -
getQueueContext
CapacitySchedulerQueueContext getQueueContext() -
getMinimumResourceCapability
org.apache.hadoop.yarn.api.records.Resource getMinimumResourceCapability() -
getMaximumResourceCapability
org.apache.hadoop.yarn.api.records.Resource getMaximumResourceCapability() -
getMaximumResourceCapability
-
getContainerTokenSecretManager
RMContainerTokenSecretManager getContainerTokenSecretManager() -
getNumClusterNodes
int getNumClusterNodes() -
getRMContext
RMContext getRMContext() -
getClusterResource
org.apache.hadoop.yarn.api.records.Resource getClusterResource() -
getConf
org.apache.hadoop.conf.Configuration getConf()Get the yarn configuration.- Returns:
- yarn configuration.
-
getResourceCalculator
org.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator() -
getNode
-
getApplicationAttempt
FiCaSchedulerApp getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) -
getPreemptionManager
PreemptionManager getPreemptionManager() -
getSchedulerHealth
SchedulerHealth getSchedulerHealth() -
getLastNodeUpdateTime
long getLastNodeUpdateTime() -
getClusterResourceUsage
ResourceUsage getClusterResourceUsage()- Returns:
- QueueCapacities root queue of the Capacity Scheduler Queue, root queue used capacities for different labels are same as that of the cluster.
-
getActivitiesManager
ActivitiesManager getActivitiesManager() -
getCapacitySchedulerQueueManager
CapacitySchedulerQueueManager getCapacitySchedulerQueueManager() -
getMaxClusterLevelAppPriority
org.apache.hadoop.yarn.api.records.Priority getMaxClusterLevelAppPriority()- Returns:
- Max Cluster level App priority.
-
isConfigurationMutable
boolean isConfigurationMutable()Returns if configuration is mutable.- Returns:
- if configuration is mutable
-
getClock
org.apache.hadoop.yarn.util.Clock getClock()Get clock from scheduler- Returns:
- Clock
-
getPendingApplicationComparator
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.PendingApplicationComparator getPendingApplicationComparator()
-