Package haizea :: Package pluggable :: Package policies :: Module admission :: Class AcceptAllPolicy
[hide private]
[frames] | no frames]

Class AcceptAllPolicy

source code


A simple admission policy: all lease requests are accepted.

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

See class documentation for details on what policy is implemented here. Returns True if the lease can be accepted, False if it should be rejected.

Argument lease -- Lease request

Overrides: core.scheduler.policy.LeaseAdmissionPolicy.accept_lease