class documentation

class TemporaryReservationManager(object):

View In Hierarchy

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.

Method __init__ Undocumented
Method DropECReservations Undocumented
Method Generate Generate a new resource of this type
Method GetECReserved Used when you want to retrieve all reservations for a specific execution context. E.g when commiting reserved IPs for a specific network.
Method GetReserved Undocumented
Method Reserve Undocumented
Method Reserved Undocumented
Instance Variable _ec_reserved Undocumented
def __init__(self):

Undocumented

def DropECReservations(self, ec_id):

Undocumented

def Generate(self, existing, generate_one_fn, ec_id):

Generate a new resource of this type

def GetECReserved(self, ec_id):

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

def GetReserved(self):

Undocumented

def Reserve(self, ec_id, resource):

Undocumented

def Reserved(self, resource):

Undocumented

_ec_reserved: dict =

Undocumented