| Trees | Indices | Help |
|
|---|
|
|
Module implementing the Ganeti locking code.
|
|||
|
_SingleNotifyPipeConditionWaiter Helper class for SingleNotifyPipeCondition |
|||
|
_BaseCondition Base class containing common code for conditions. |
|||
|
SingleNotifyPipeCondition Condition which can only be notified once. |
|||
|
PipeCondition Group-only non-polling condition with counters. |
|||
| _PipeConditionWithMode | |||
|
SharedLock Implements a shared lock. |
|||
|
_AcquireTimeout Internal exception to abort an acquire on a timeout. |
|||
|
LockSet Implements a set of locks. |
|||
|
GanetiLockManager The Ganeti Locking Library |
|||
| LockMonitor | |||
|
|||
|
|||
|
|||
| tuple |
|
||
|
|||
|
|||
_EXCLUSIVE_TEXT = "exclusive"
|
|||
_SHARED_TEXT = "shared"
|
|||
_DELETED_TEXT = "deleted"
|
|||
_DEFAULT_PRIORITY = 0
|
|||
_LOCK_ACQUIRE_MIN_TIMEOUT = 1.0/ 1000Minimum timeout required to consider scheduling a pending acquisition (seconds) |
|||
_LS_ACQUIRE_MODES = compat.UniqueFrozenset([_LS_ACQUIRE_EXACT,
|
|||
ALL_SET = None
|
|||
LEVELS = [LEVEL_CLUSTER, LEVEL_INSTANCE, LEVEL_NODE_ALLOC, LEV
|
|||
LEVELS_MOD = compat.UniqueFrozenset([LEVEL_NODE_RES, LEVEL_NOD
|
|||
LEVEL_NAMES = {LEVEL_CLUSTER: "cluster", LEVEL_INSTANCE: "instLock level names (make sure to use singular form) |
|||
BGL = "BGL"
|
|||
NAL = "NAL"Node allocation lock |
|||
Imports: os, select, threading, errno, weakref, logging, heapq, itertools, time, errors, utils, compat, query
|
|||
Shared Synchronization decorator. Calls the function holding the given lock, either in exclusive or shared mode. It requires the passed lock to be a SharedLock (or support its semantics).
|
Determines modes and timeouts for LockSet.acquire.
|
Sorting key function. Sort by name, registration order and then order of information. This provides a stable sort order over different providers, even if they return the same name. |
|
|||
_LS_ACQUIRE_MODES
|
LEVELS
|
LEVELS_MOD
|
LEVEL_NAMESLock level names (make sure to use singular form)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jul 4 09:38:34 2014 | http://epydoc.sourceforge.net |