Package haizea :: Package core :: Package scheduler :: Module policy :: Class LeaseAdmissionPolicy
[hide private]
[frames] | no frames]

Class LeaseAdmissionPolicy

source code


Lease Admission policy

This is the parent class of lease admission policies. A lease admission policy determines whether a given lease request should be accepted or not by Haizea. Note that this is distinct from whether the lease can be scheduled or not (although this could certainly be a part of the policy); the policy simply decides whether the lease can be considered for scheduling or not. For example, a user could submit an AR lease that must start in 5 hours, but the policy could dictate that all ARs must be notified at least 24 hours in advance (and the lease would be rejected, regardless of whether there was resources available for it in 5 hours). Similarly, an AR lease could be requested 48 hours in advance, be accepted by the lease admission policy, but then be rejected by the scheduler if there are no resources available.

Instance Methods [hide private]
 
__init__(self, slottable)
Constructor
source code
 
accept_lease(self, lease)
Lease admission function
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, slottable)
(Constructor)

source code 

Constructor

Argument slottable -- A fully constructed SlotTable

Overrides: object.__init__

accept_lease(self, lease)

source code 

Lease admission function

Returns True if the lease can be accepted, False if it should be rejected.

Argument lease -- Lease request