当前位置: 首页>>代码示例>>Python>>正文


Python IModule.stop方法代码示例

本文整理汇总了Python中gns3server.modules.IModule.stop方法的典型用法代码示例。如果您正苦于以下问题:Python IModule.stop方法的具体用法?Python IModule.stop怎么用?Python IModule.stop使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gns3server.modules.IModule的用法示例。


在下文中一共展示了IModule.stop方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self):
        """
        Properly stops the module.
        """

        #if not sys.platform.startswith("win32"):
        #    self._callback.stop()
        if self._hypervisor_manager:
            self._hypervisor_manager.stop_all_hypervisors()
        IModule.stop(self)  # this will stop the I/O loop
开发者ID:fpena06,项目名称:gns3-server,代码行数:12,代码来源:__init__.py

示例2: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self):
        """
        Properly stops the module.
        """

        # delete all IOU instances
        for iou_id in self._iou_instances:
            iou_instance = self._iou_instances[iou_id]
            iou_instance.delete()

        IModule.stop(self)  # this will stop the I/O loop
开发者ID:charlesnw1,项目名称:gns3-server,代码行数:13,代码来源:__init__.py

示例3: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self, signum=None):
        """
        Properly stops the module.

        :param signum: signal number (if called by the signal handler)
        """

        # delete all QEMU instances
        for qemu_id in self._qemu_instances:
            qemu_instance = self._qemu_instances[qemu_id]
            qemu_instance.delete()

        IModule.stop(self, signum)  # this will stop the I/O loop
开发者ID:shmygov,项目名称:gns3-server,代码行数:15,代码来源:__init__.py

示例4: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self, signum=None):
        """
        Properly stops the module.

        :param signum: signal number (if called by the signal handler)
        """

        # delete all VPCS instances
        for vpcs_id in self._vpcs_instances:
            vpcs_instance = self._vpcs_instances[vpcs_id]
            vpcs_instance.delete()

        IModule.stop(self, signum)  # this will stop the I/O loop
开发者ID:shaneutt,项目名称:gns3-server,代码行数:15,代码来源:__init__.py

示例5: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self, signum=None):
        """
        Properly stops the module.

        :param signum: signal number (if called by the signal handler)
        """

        # delete all VirtualBox instances
        for vbox_id in self._vbox_instances:
            vbox_instance = self._vbox_instances[vbox_id]
            vbox_instance.delete()

        if self._vboxwrapper and self._vboxwrapper.started:
            self._vboxwrapper.stop()

        IModule.stop(self, signum)  # this will stop the I/O loop
开发者ID:mint22,项目名称:gns3-server,代码行数:18,代码来源:__init__.py

示例6: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self, signum=None):
        """
        Properly stops the module.

        :param signum: signal number (if called by the signal handler)
        """

        if not sys.platform.startswith("win32"):
            self._callback.stop()

        # stop all Dynamips hypervisors
        if self._hypervisor_manager:
            self._hypervisor_manager.stop_all_hypervisors()

        self.delete_dynamips_files()

        IModule.stop(self, signum)  # this will stop the I/O loop
开发者ID:madkrell,项目名称:gns3-server,代码行数:19,代码来源:__init__.py

示例7: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self, signum=None):
        """
        Properly stops the module.

        :param signum: signal number (if called by the signal handler)
        """

        if self._deadman_process == None:
            log.info("Deadman: Can't stop, is not currently running")

        log.debug("Deadman: Stopping process")

        self._deadman_process = self._stop_deadman_process()
        self._deadman_process = None
        #Jerry or Jeremy why do we do this? Won't this stop the I/O loop for
        #for everyone?
        IModule.stop(self, signum)  # this will stop the I/O loop
开发者ID:planctechnologies,项目名称:gns3-server,代码行数:19,代码来源:__init__.py

示例8: stop

# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
    def stop(self, signum=None):
        """
        Properly stops the module.

        :param signum: signal number (if called by the signal handler)
        """

        self._iou_callback.stop()

        # delete all IOU instances
        for iou_id in self._iou_instances:
            iou_instance = self._iou_instances[iou_id]
            iou_instance.delete()

        self.delete_iourc_file()

        IModule.stop(self, signum)  # this will stop the I/O loop
开发者ID:joebowen,项目名称:gns3-server,代码行数:19,代码来源:__init__.py


注:本文中的gns3server.modules.IModule.stop方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。