Package haizea :: Package pluggable :: Package policies :: Module preemption :: Class NoPreemptionPolicy
[hide private]
[frames] | no frames]

Class NoPreemptionPolicy

source code


Simple preemption policy: preemption is never allowed.

Instance Methods [hide private]
 
__init__(self, slottable)
Constructor
source code
 
get_lease_preemptability_score(self, preemptor, preemptee, time)
Computes the lease preemptability score
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__

get_lease_preemptability_score(self, preemptor, preemptee, time)

source code 

Computes the lease preemptability score

See class documentation for details on what policy is implemented here. See documentation of PreemptabilityPolicy.get_lease_preemptability_score for more details on this function.

Arguments: preemptor -- Preemptor lease preemptee -- Preemptee lease time -- Time at which preemption would take place

Overrides: core.scheduler.policy.PreemptabilityPolicy.get_lease_preemptability_score