public interface PlanContext
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.api.records.Resource | getMaximumAllocation()Returns the single largest  Resourceallocation that can be reserved
 in this plan | 
| long | getMaximumPeriodicity()Returns the maximum periodicity allowed in a recurrence expression
 for reservations of a particular plan. | 
| org.apache.hadoop.yarn.api.records.Resource | getMinimumAllocation()Returns the single smallest  Resourceallocation that can be
 reserved in this plan | 
| boolean | getMoveOnExpiry()Instructs the  PlanFolloweron what to do for applications
 which are still running when the reservation is expiring (move-to-default
 vs kill) | 
| QueueMetrics | getQueueMetrics()Return the  QueueMetricsfor the queue in theResourceSchedulercorresponding to this plan | 
| String | getQueueName()Return the name of the queue in the  ResourceSchedulercorresponding
 to this plan | 
| Planner | getReplanner()Return an instance of a  Planner, which will be invoked in response
 to unexpected reduction in the resources of this plan | 
| ReservationAgent | getReservationAgent()Return the  ReservationAgentconfigured for this plan that is
 responsible for optimally placing various reservation requests | 
| org.apache.hadoop.yarn.util.resource.ResourceCalculator | getResourceCalculator()Returns the system  ResourceCalculator | 
| SharingPolicy | getSharingPolicy()Return the configured  SharingPolicythat governs the sharing of the
 resources of the plan between its various users | 
| long | getStep()Returns the configured "step" or granularity of time of the plan in millis. | 
long getStep()
ReservationAgent getReservationAgent()
ReservationAgent configured for this plan that is
 responsible for optimally placing various reservation requestsReservationAgent configured for this planPlanner getReplanner()
Planner, which will be invoked in response
 to unexpected reduction in the resources of this planPlanner, which will be invoked in response
         to unexpected reduction in the resources of this planSharingPolicy getSharingPolicy()
SharingPolicy that governs the sharing of the
 resources of the plan between its various usersSharingPolicy that governs the sharing of
         the resources of the plan between its various usersorg.apache.hadoop.yarn.util.resource.ResourceCalculator getResourceCalculator()
ResourceCalculatorResourceCalculatororg.apache.hadoop.yarn.api.records.Resource getMinimumAllocation()
Resource allocation that can be
 reserved in this planResource allocation that can be
         reserved in this planorg.apache.hadoop.yarn.api.records.Resource getMaximumAllocation()
Resource allocation that can be reserved
 in this planResource allocation that can be reserved
         in this planlong getMaximumPeriodicity()
String getQueueName()
ResourceScheduler corresponding
 to this planResourceScheduler
         corresponding to this planQueueMetrics getQueueMetrics()
QueueMetrics for the queue in the
 ResourceScheduler corresponding to this planQueueMetrics for the queue in the
         ResourceScheduler corresponding to this planboolean getMoveOnExpiry()
PlanFollower on what to do for applications
 which are still running when the reservation is expiring (move-to-default
 vs kill)Copyright © 2008–2023 Apache Software Foundation. All rights reserved.