diff options
Diffstat (limited to 'nova/manager.py')
-rw-r--r-- | nova/manager.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/nova/manager.py b/nova/manager.py index 2a7570c3b..0e447c7c1 100644 --- a/nova/manager.py +++ b/nova/manager.py @@ -183,10 +183,30 @@ class Manager(base.Base): locals()) def init_host(self): - """Handle initialization if this is a standalone service. + """Hook to do additional manager initialization when one requests + the service be started. This is called before any service record + is created. Child classes should override this method. + """ + pass + + def pre_start_hook(self): + """Hook to provide the manager the ability to do additional + start-up work before any RPC queues/consumers are created. This is + called after other initialization has succeeded and a service + record is created. + Child classes should override this method. + """ + pass + + def post_start_hook(self): + """Hook to provide the manager the ability to do additional + start-up work immediately after a service creates RPC consumers + and starts 'running'. + + Child classes should override this method. """ pass |