Package ganeti :: Package server :: Module confd :: Class ConfdConfigurationReloader
[hide private]
[frames] | no frames]

Class ConfdConfigurationReloader

source code


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
source code
 
OnInotify(self, notifier_enabled)
Receive an inotify notification.
source code
 
_DisableTimer(self) source code
 
_EnableTimer(self) source code
 
_ResetTimer(self) source code
 
OnTimer(self)
Function called when the timer fires
source code
 
DisableConfd(self, silent=False)
Puts confd in non-serving mode
source code
 
EnableConfd(self) source code

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)

source code 

Constructor for ConfdConfigurationReloader

Parameters:
Overrides: object.__init__

OnInotify(self, notifier_enabled)

source code 

Receive an inotify notification.

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