本文整理汇总了Python中lumbermill.BaseThreadedModule.BaseThreadedModule.shutDown方法的典型用法代码示例。如果您正苦于以下问题:Python BaseThreadedModule.shutDown方法的具体用法?Python BaseThreadedModule.shutDown怎么用?Python BaseThreadedModule.shutDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lumbermill.BaseThreadedModule.BaseThreadedModule
的用法示例。
在下文中一共展示了BaseThreadedModule.shutDown方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
self.accumulateReceiveRateStats()
self.accumulateEventTypeStats()
if self.lumbermill.is_master():
self.printIntervalStatistics()
self.mp_stats_collector.shutDown()
BaseThreadedModule.shutDown(self)
示例2: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
if self.server:
self.server.stop()
# Give os time to free the socket. Otherwise a reload will fail with 'address already in use'
time.sleep(.2)
# Call parent shutDown method.
BaseThreadedModule.shutDown(self)
示例3: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
try:
self.buffer.flush()
except:
pass
try:
self.client.close()
self.zmq_context.term()
except AttributeError:
pass
# Call parent shutDown method.
BaseThreadedModule.shutDown(self)
示例4: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
try:
self.buffer.flush()
except:
pass
BaseThreadedModule.shutDown(self)
示例5: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
# Call parent configure method.
BaseThreadedModule.shutDown(self)
self.socket.close()
self.socket = None
示例6: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
# Push any remaining facet data.
self.evaluateFacets()
# Call parent configure method.
BaseThreadedModule.shutDown(self)
示例7: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
BaseThreadedModule.shutDown(self)
for thread in self.lookup_threads:
thread.stop()
thread.join()
示例8: shutDown
# 需要导入模块: from lumbermill.BaseThreadedModule import BaseThreadedModule [as 别名]
# 或者: from lumbermill.BaseThreadedModule.BaseThreadedModule import shutDown [as 别名]
def shutDown(self):
self.syslog_handler.close()
BaseThreadedModule.shutDown(self)