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)
Constructs a new GanetiContext object.
source code
 
__setattr__(self, name, value)
Setting GanetiContext attributes is forbidden after initialization.
source code
 
AddNode(self, node, ec_id)
Adds a node to the configuration and lock manager.
source code
 
ReaddNode(self, node)
Updates a node that's already in the configuration
source code
 
RemoveNode(self, 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
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(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__