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)
x.__init__(...) initializes x; see help(type(x)) for signature
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

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)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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.