Package ganeti :: Module locking :: Class LockMonitor
[hide private]
[frames] | no frames]

Class LockMonitor

source code


Instance Methods [hide private]
 
__init__(self)
Initializes this class.
source code
 
RegisterLock(self, lock)
Registers a new lock.
source code
 
_GetLockInfo(self, fields)
Get information from all locks while the monitor lock is held.
source code
 
QueryLocks(self, fields, sync)
Queries information from all locks.
source code

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

Class Variables [hide private]
  _LOCK_ATTR = "_lock"
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__

RegisterLock(self, lock)

source code 

Registers a new lock.

Decorators:
  • @ssynchronized(_LOCK_ATTR)

_GetLockInfo(self, fields)

source code 

Get information from all locks while the monitor lock is held.

Decorators:
  • @ssynchronized(_LOCK_ATTR)

QueryLocks(self, fields, sync)

source code 

Queries information from all locks.

Parameters:
  • fields (list of strings) - List of fields to return
  • sync (boolean) - Whether to operate in synchronous mode