本文整理汇总了Python中mopidy.utils.process.stop_actors_by_class函数的典型用法代码示例。如果您正苦于以下问题:Python stop_actors_by_class函数的具体用法?Python stop_actors_by_class怎么用?Python stop_actors_by_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了stop_actors_by_class函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: stop_frontends
def stop_frontends():
for frontend_class_name in settings.FRONTENDS:
try:
frontend_class = importing.get_class(frontend_class_name)
process.stop_actors_by_class(frontend_class)
except exceptions.OptionalDependencyError:
pass
开发者ID:cave-scorpion,项目名称:mopidy,代码行数:7,代码来源:__main__.py
示例2: on_stop
def on_stop(self):
if self.zeroconf_service:
self.zeroconf_service.unpublish()
process.stop_actors_by_class(session.MpdSession)
开发者ID:Shugyousha,项目名称:mopidy,代码行数:5,代码来源:actor.py
示例3: stop_backends
def stop_backends():
for backend_class_name in settings.BACKENDS:
process.stop_actors_by_class(importing.get_class(backend_class_name))
开发者ID:cave-scorpion,项目名称:mopidy,代码行数:3,代码来源:__main__.py
示例4: stop_core
def stop_core():
process.stop_actors_by_class(Core)
开发者ID:cave-scorpion,项目名称:mopidy,代码行数:2,代码来源:__main__.py
示例5: on_stop
def on_stop(self):
# if self.zeroconf_service:
# self.zeroconf_service.unpublish()
process.stop_actors_by_class(session.DictatorSession)
开发者ID:UncommonGoods,项目名称:mopidy-dictator,代码行数:5,代码来源:actor.py
示例6: stop_audio
def stop_audio():
process.stop_actors_by_class(Audio)
开发者ID:cave-scorpion,项目名称:mopidy,代码行数:2,代码来源:__main__.py
示例7: stop_backends
def stop_backends(self, backend_classes):
logger.info('Stopping Mopidy backends')
for backend_class in backend_classes:
process.stop_actors_by_class(backend_class)
开发者ID:ArcherSys,项目名称:Peridot,代码行数:4,代码来源:commands.py
示例8: stop_frontends
def stop_frontends():
for frontend_class_name in settings.FRONTENDS:
try:
stop_actors_by_class(get_class(frontend_class_name))
except OptionalDependencyError:
pass
开发者ID:Dvad,项目名称:mopidy,代码行数:6,代码来源:__main__.py
示例9: stop_frontends
def stop_frontends(self, frontend_classes):
logger.info('Stopping Mopidy frontends')
for frontend_class in frontend_classes:
process.stop_actors_by_class(frontend_class)
开发者ID:ArcherSys,项目名称:Peridot,代码行数:4,代码来源:commands.py
示例10: stop_core
def stop_core(self):
logger.info('Stopping Mopidy core')
process.stop_actors_by_class(Core)
开发者ID:ArcherSys,项目名称:Peridot,代码行数:3,代码来源:commands.py
示例11: stop_mixer
def stop_mixer():
stop_actors_by_class(get_class(settings.MIXER))
开发者ID:arambelo,项目名称:mopidy,代码行数:2,代码来源:core.py
示例12: stop_gstreamer
def stop_gstreamer():
stop_actors_by_class(GStreamer)
开发者ID:arambelo,项目名称:mopidy,代码行数:2,代码来源:core.py
示例13: stop_backends
def stop_backends(self, extensions):
logger.info("Stopping Mopidy backends")
for extension in extensions:
for backend_class in extension.get_backend_classes():
process.stop_actors_by_class(backend_class)
开发者ID:henningko,项目名称:mopidy,代码行数:5,代码来源:commands.py
示例14: stop_audio
def stop_audio():
stop_actors_by_class(Audio)
开发者ID:Dvad,项目名称:mopidy,代码行数:2,代码来源:__main__.py
示例15: stop_audio
def stop_audio(self):
logger.info('Stopping Mopidy audio')
process.stop_actors_by_class(Audio)
开发者ID:ArcherSys,项目名称:Peridot,代码行数:3,代码来源:commands.py
示例16: stop_backend
def stop_backend():
stop_actors_by_class(get_class(settings.BACKENDS[0]))
开发者ID:Dvad,项目名称:mopidy,代码行数:2,代码来源:__main__.py
示例17: stop_mixer
def stop_mixer(self, mixer_class):
logger.info('Stopping Mopidy mixer')
process.stop_actors_by_class(mixer_class)
开发者ID:ArcherSys,项目名称:Peridot,代码行数:3,代码来源:commands.py
示例18: on_stop
def on_stop(self):
process.stop_actors_by_class(session.MpdSession)
开发者ID:0xadam,项目名称:mopidy,代码行数:2,代码来源:actor.py
示例19: stop_frontends
def stop_frontends(extensions):
logger.info('Stopping Mopidy frontends')
for extension in extensions:
for frontend_class in extension.get_frontend_classes():
process.stop_actors_by_class(frontend_class)
开发者ID:eisnerd,项目名称:mopidy,代码行数:5,代码来源:__main__.py
注:本文中的mopidy.utils.process.stop_actors_by_class函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论