Package ganeti :: Module uidpool :: Class LockedUid
[hide private]
[frames] | no frames]

Class LockedUid

source code


Class representing a locked user-id in the uid-pool.

This binds together a userid and a lock.

Instance Methods [hide private]
 
__init__(self, uid, lock)
Constructor
source code
 
Unlock(self) source code
 
GetUid(self) source code
 
AsStr(self) 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, uid, lock)
(Constructor)

source code 

Constructor

Parameters:
  • uid - a user-id
  • lock - a utils.FileLock object
Overrides: object.__init__