Package ganeti :: Module config :: Class TemporaryReservationManager
[hide private]
[frames] | no frames]

Class TemporaryReservationManager

source code

A temporary resource reservation manager.

This is used to reserve resources in a job, before using them, making sure other jobs cannot get them in the meantime.

Instance Methods [hide private]
 
__init__(self) source code
 
Reserved(self, resource) source code
 
Reserve(self, ec_id, resource) source code
 
DropECReservations(self, ec_id) source code
 
GetReserved(self) source code
 
GetECReserved(self, ec_id)
Used when you want to retrieve all reservations for a specific execution context.
source code
 
Generate(self, existing, generate_one_fn, ec_id)
Generate a new resource of this type
source code
Method Details [hide private]

GetECReserved(self, ec_id)

source code 

Used when you want to retrieve all reservations for a specific execution context. E.g when commiting reserved IPs for a specific network.