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, requested)
Get information from all locks while the monitor lock is held.
source code
 
_Query(self, fields)
Queries information from all locks.
source code
 
QueryLocks(self, fields)
Queries information from all locks.
source code
 
OldStyleQueryLocks(self, fields)
Queries information from all locks, returning old-style data.
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, requested)

source code 

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

Decorators:
  • @ssynchronized(_LOCK_ATTR)

_Query(self, fields)

source code 

Queries information from all locks.

Parameters:
  • fields (list of strings) - List of fields to return

QueryLocks(self, fields)

source code 

Queries information from all locks.

Parameters:
  • fields (list of strings) - List of fields to return

OldStyleQueryLocks(self, fields)

source code 

Queries information from all locks, returning old-style data.

Parameters:
  • fields (list of strings) - List of fields to return