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


Python CompositeNode.stop方法代码示例

本文整理汇总了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)
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:tsws.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:memory.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:12,代码来源:local_view.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:14,代码来源:points.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:hosts.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:5,代码来源:usap.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:5,代码来源:bacnet_scheduler.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:8,代码来源:soap_proxy.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:energywise_manager.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:8,代码来源:__init__.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:8,代码来源:server.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:serial_server.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:last_alarm.py

示例14: stop

# 需要导入模块: from mpx.lib.node import CompositeNode [as 别名]
# 或者: from mpx.lib.node.CompositeNode import stop [as 别名]
 def stop(self):
     CompositeNode.stop(self)
开发者ID:mcruse,项目名称:monotone,代码行数:4,代码来源:schedule.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:client.py


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