

def __init__(self, state_change_callback=None, running_state_callback=None):
    self._vmutils = utilsfactory.get_vmutils()
    self._listener = self._vmutils.get_vm_power_state_change_listener(timeframe=CONF.hyperv.power_state_check_timeframe, filtered_states=list(self._TRANSITION_MAP.keys()))
    self._polling_interval = CONF.hyperv.power_state_event_polling_interval
    self._state_change_callback = state_change_callback
    self._running_state_callback = running_state_callback

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/hyperv/eventhandler.py InstanceEventHandler.__init__/original