class documentation

class GanetiContext(object):

View In Hierarchy

Context common to all ganeti threads.

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

Method __init__ Constructs a new GanetiContext object.
Method __setattr__ Setting GanetiContext attributes is forbidden after initialization.
Method AddNode Adds a node to the configuration.
Method GetConfig Undocumented
Method GetRpc Undocumented
Method GetWConfdContext Undocumented
Method RemoveNode Removes a node from the configuration and lock manager.
Instance Variable jobqueue Undocumented
Instance Variable livelock Undocumented
Class Variable _instance Undocumented
def __init__(self, livelock=None):

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.

def __setattr__(self, name, value):

Setting GanetiContext attributes is forbidden after initialization.

def AddNode(self, cfg, node, ec_id):

Adds a node to the configuration.

def GetConfig(self, ec_id):

Undocumented

def GetRpc(self, cfg):

Undocumented

def GetWConfdContext(self, ec_id):

Undocumented

def RemoveNode(self, cfg, node):

Removes a node from the configuration and lock manager.

jobqueue =

Undocumented

livelock =

Undocumented

_instance =

Undocumented