def __init__(self, host='.'): self._instance_name_regex = re.compile('Virtual Machine (.*)') self._clusapi_utils = _clusapi_utils.ClusApiUtils() self._cmgr = _clusapi_utils.ClusterContextManager() if sys.platform == 'win32': self._init_hyperv_conn(host)
def __init__(self, host='.'): self._instance_name_regex = re.compile('Virtual Machine (.*)') self._clusapi_utils = _clusapi_utils.ClusApiUtils() if sys.platform == 'win32': self._init_hyperv_conn(host) self._watcher = self._get_failover_watcher()
def __init__(self, cluster_handle, stop_on_error=True): self._cluster_handle = cluster_handle self._stop_on_error = stop_on_error self._clusapi_utils = _clusapi_utils.ClusApiUtils() self._event_queue = queue.Queue() self._setup()
def __init__(self, cluster_handle, notif_filters_list): self._cluster_handle = cluster_handle self._notif_filters_list = notif_filters_list self._clusapi_utils = _clusapi_utils.ClusApiUtils() self._event_queue = queue.Queue() self._setup()
def setUp(self): super(ClusApiUtilsTestCase, self).setUp() self._clusapi = mock.patch.object( _clusapi_utils, 'clusapi', create=True).start() self._clusapi_utils = _clusapi_utils.ClusApiUtils() self._run_patcher = mock.patch.object(self._clusapi_utils, '_run_and_check_output') self._mock_run = self._run_patcher.start()
def __init__(self): super(GroupStateChangeListener, self).__init__() self._clusapi_utils = _clusapi_utils.ClusApiUtils() self._cluster_handle = self._clusapi_utils.open_cluster()