Script ganeti_masterd :: Class GanetiContext
[hide private]
[frames] | no frames]

Class GanetiContext


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.
 
__setattr__(self, name, value)
Setting GanetiContext attributes is forbidden after initialization.
 
AddNode(self, node, ec_id)
Adds a node to the configuration and lock manager.
 
ReaddNode(self, node)
Updates a node that's already in the configuration
 
RemoveNode(self, name)
Removes a node from the configuration and lock manager.

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)

 

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)

 

Setting GanetiContext attributes is forbidden after initialization.

Overrides: object.__setattr__