本文整理汇总了Python中mpx.service.ServiceNode.stop方法的典型用法代码示例。如果您正苦于以下问题:Python ServiceNode.stop方法的具体用法?Python ServiceNode.stop怎么用?Python ServiceNode.stop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpx.service.ServiceNode
的用法示例。
在下文中一共展示了ServiceNode.stop方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
if not self._waiting_alarm_sid is None:
try:
scheduler.remove(self._waiting_alarm_sid)
except: # SID may already have expired and been removed...
msglog.exception()
self._waiting_alarm_sid = None
self._started = 0
ServiceNode.stop(self)
return
示例2: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
self.__running = 0
self.__thread = None
self.__queue.put(None)
try:
# @fixme try/except/else is a hack to survive testcases use
# of prune. Really should revisit...
alarms = self.get_child('alarms')
except:
pass
else:
for child in alarms.children_nodes():
child.cancel(self, AlarmTriggerEvent)
child.cancel(self, AlarmClearEvent)
return ServiceNode.stop(self)
示例3: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
return ServiceNode.stop(self)
示例4: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
if self.enabled:
self.stop_count += 1
self._stop()
ServiceNode.stop(self)
return
示例5: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
if Server._servers.has_key(self.port):
del Server._servers[self.port]
self._teardown_server()
return ServiceNode.stop(self)
示例6: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
self.forwarder.stop_forwarding(self.log)
ServiceNode.stop(self)
return
示例7: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
ServiceNode.stop(self)
示例8: stop
# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import stop [as 别名]
def stop(self):
self.formatter = None
self.transporter = None
return ServiceNode.stop(self)