Script ganeti_confd :: Class ConfdConfigurationReloader
[hide private]
[frames] | no frames]

Class ConfdConfigurationReloader


Logic to control when to reload the ganeti configuration

This class is able to alter between inotify and polling, to rate-limit the number of reloads. When using inotify it also supports a fallback timed check, to verify that the reload hasn't failed.

Instance Methods [hide private]
 
__init__(self, processor, mainloop)
Constructor for ConfdConfigurationReloader
 
OnInotify(self, notifier_enabled)
Receive an inotify notification.
 
_DisableTimer(self)
 
_EnableTimer(self)
 
_ResetTimer(self)
 
OnTimer(self)
Function called when the timer fires
 
DisableConfd(self, silent=False)
Puts confd in non-serving mode
 
EnableConfd(self)

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, processor, mainloop)
(Constructor)

 

Constructor for ConfdConfigurationReloader

Parameters:
Overrides: object.__init__

OnInotify(self, notifier_enabled)

 

Receive an inotify notification.

Parameters:
  • notifier_enabled (boolean) - whether the notifier is still enabled