本文整理汇总了Python中mpx.lib.node.CompositeNode.stop方法的典型用法代码示例。如果您正苦于以下问题:Python CompositeNode.stop方法的具体用法?Python CompositeNode.stop怎么用?Python CompositeNode.stop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpx.lib.node.CompositeNode
的用法示例。
在下文中一共展示了CompositeNode.stop方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
try:
self._interface_node.stop()
except:
msglog.log('tsws',msglog.types.ERR,'tsws failed to stop interface node')
self._interface_node = None
CompositeNode.stop(self)
示例2: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
if self._running == 0:
raise ENotRunning('MemoryNode')
self._running = 0
CompositeNode.stop(self)
for record in self.children_nodes():
record.prune()
return
示例3: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
self._running = 0
##
# @todo Remove auto-created nodes (eg logger, aeroserver, etc.),
# to prevent "Already Exists" errors at next call on start(). OR
# simply check for node pre-existence during start. Reconfig if
# nodes already exist.
#
CompositeNode.stop(self)
return
示例4: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
try:
ActiveProxyAbstractClass.stop(self)
if self._line_handler is not None:
if self.is_bound_proxy():
self._line_handler.unregister_bound_proxy(self)
else:
self._line_handler.unregister_subscribed_proxy(self)
except:
msglog.exception()
CompositeNode.stop(self)
return
示例5: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
scheduled = self._scheduled
if scheduled:
scheduled.cancel()
self.__cached_remotes.clear()
self._scheduled = None
self._reset_result()
return CompositeNode.stop(self)
示例6: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
msglog.log('USAP', INFO, 'Object: In stop().')
CompositeNode.stop(self)
示例7: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
self.running = 0
CompositeNode.stop(self)
示例8: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
proxy = self.__proxy
self.__proxy = None
for operation in proxy.methods.keys():
delattr(self,operation)
return CompositeNode.stop(self)
示例9: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
CompositeNode.stop(self)
self.__running = False
return
示例10: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop( self ):
CompositeNode.stop( self )
if self.sched_id:
scheduler.cancel( self.sched_id )
self.sched_id = None
self.isStarted = 0
示例11: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
if self.running:
destroy_server_device(self.lib_device) #make it go away!
self.lib_device = None
CompositeNode.stop(self)
self.running = 0
示例12: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
self.subnet.stop()
CompositeNode.stop(self)
return
示例13: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
selt._started = 0
self.parent.cancel(self,AlarmTriggerEvent)
CompositeNode.stop(self)
示例14: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
CompositeNode.stop(self)
示例15: stop
# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
def stop(self):
self.parent.event_unsubscribe(self,ChangeOfValueEvent)
self.parent.event_unsubscribe(self,ScheduleChangedEvent)
CompositeNode.stop(self)