def _instance_action(self, ctxt, instance, method, extra_kwargs=None,
                         need_response=False):
        cell_name = instance.cell_name
        if not cell_name:
            LOG.warning(_LW("No cell_name for %(method)s() from API"),
                        dict(method=method), instance=instance)
            return
        method_kwargs = {'instance': instance}
        if extra_kwargs:
            method_kwargs.update(extra_kwargs)
        message = _TargetedMessage(self, ctxt, method, method_kwargs,
                                   'down', cell_name,
                                   need_response=need_response)
        return message.process()
Emit a record.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/messaging.py/MessageRunner._instance_action--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/handlers.py/SocketHandler.emit