|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.LimitedPrivate(value="yarn") @InterfaceStability.Unstable public interface SharingPolicy
This is the interface for policy that validate new
ReservationAllocations for allocations being added to a Plan.
Individual policies will be enforcing different invariants.
| Method Summary | |
|---|---|
long |
getValidWindow()
Returns the time range before and after the current reservation considered by this policy. |
void |
init(String planQueuePath,
org.apache.hadoop.conf.Configuration conf)
Initialize this policy |
void |
validate(Plan plan,
ReservationAllocation newAllocation)
This method runs the policy validation logic, and return true/false on whether the ReservationAllocation is acceptable according to this
sharing policy. |
| Method Detail |
|---|
void init(String planQueuePath,
org.apache.hadoop.conf.Configuration conf)
planQueuePath - the name of the queue for this planconf - the system configuration
void validate(Plan plan,
ReservationAllocation newAllocation)
throws PlanningException
ReservationAllocation is acceptable according to this
sharing policy.
plan - the Plan we validate againstnewAllocation - the allocation proposed to be added to the
Plan
PlanningException - if the policy is respected if we add this
ReservationAllocation to the Planlong getValidWindow()
Plan, i.e., reservations regarding times before (now - validWindow)
can be deleted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||