def _notify_source_error(self, ctxt, method, err, source=None, id=None, name=None): payload = dict(sources=source, name=name, id=id, error_message=err) rpc.get_notifier('source').error(ctxt, method, payload)
def _notify_source_info(self, ctxt, method, source): payload = dict(sources=source) rpc.get_notifier('source').info(ctxt, method, payload)
def _notify_vm_info(self, ctxt, method, vm): payload = dict(vms=vm) rpc.get_notifier('vm').info(ctxt, method, payload)
def _notify_migration_info(self, ctxt, method, migration): payload = dict(migrations=migration) rpc.get_notifier('migration').info(ctxt, method, payload)
def _notify_vm_error(self, ctxt, method, err, vm=None, id=None, name=None): payload = dict(vms=vm, name=name, id=id, error_message=err) rpc.get_notifier('vm').error(ctxt, method, payload)
def _notify_source_type_info(self, ctxt, method, source_type): payload = dict(source_types=source_type) rpc.get_notifier('sourceType').info(ctxt, method, payload)
def _notify_migration_error(self, ctxt, method, err, migration=None, id=None, name=None): payload = dict(migrations=migration, name=name, id=id, error_message=err) rpc.get_notifier('migration').error(ctxt, method, payload)
def _notify_source_type_error(self, ctxt, method, err, source_type=None, id=None, name=None): payload = dict( source_types=source_type, name=name, id=id, error_message=err) rpc.get_notifier('sourceType').error(ctxt, method, payload)