Package haizea :: Package core :: Package scheduler :: Module vm_scheduler :: Class VMResourceReservation
[hide private]
[frames] | no frames]

Class VMResourceReservation

source code


Instance Methods [hide private]
 
__init__(self, lease, start, end, nodes, res)
Constructor
source code
 
update_start(self, time) source code
 
update_end(self, time) source code
 
__update_prematureend(self) source code
 
get_final_end(self) source code
 
is_suspending(self) source code
 
is_shutting_down(self) source code
 
print_contents(self, loglevel=5)
Prints the contents of the RR to the log
source code

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

Class Variables [hide private]

Inherited from slottable.ResourceReservation: STATE_ACTIVE, STATE_DONE, STATE_SCHEDULED, state_str

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lease, start, end, nodes, res)
(Constructor)

source code 

Constructor

Parameters:
  • lease - Lease this resource reservation belongs to
  • start - Starting time of the reservation
  • end - Ending time of the reservation
  • res - A dictionary mapping physical node ids to ResourceTuple objects
Overrides: object.__init__
(inherited documentation)

print_contents(self, loglevel=5)

source code 

Prints the contents of the RR to the log

Parameters:
  • loglevel - Log level
Overrides: slottable.ResourceReservation.print_contents
(inherited documentation)