Package ganeti :: Package server :: Module masterd :: Class GanetiContext
[hide private]
[frames] | no frames]

Class GanetiContext

source code


Context common to all ganeti threads.

This class creates and holds common objects shared by all threads.

Instance Methods [hide private]
 
__init__(self, livelock=None)
Constructs a new GanetiContext object.
source code
 
__setattr__(self, name, value)
Setting GanetiContext attributes is forbidden after initialization.
source code
 
GetWConfdContext(self, ec_id) source code
 
GetConfig(self, ec_id) source code
 
GetRpc(self, cfg) source code
 
AddNode(self, cfg, node, ec_id)
Adds a node to the configuration.
source code
 
RemoveNode(self, cfg, node)
Removes a node from the configuration and lock manager.
source code

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

Class Variables [hide private]
  _instance = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, livelock=None)
(Constructor)

source code 

Constructs a new GanetiContext object.

There should be only a GanetiContext object at any time, so this function raises an error if this is not the case.

Overrides: object.__init__

__setattr__(self, name, value)

source code 

Setting GanetiContext attributes is forbidden after initialization.

Overrides: object.__setattr__