本文整理汇总了Python中perfrunner.helpers.remote.RemoteHelper.get_system_backup_version方法的典型用法代码示例。如果您正苦于以下问题:Python RemoteHelper.get_system_backup_version方法的具体用法?Python RemoteHelper.get_system_backup_version怎么用?Python RemoteHelper.get_system_backup_version使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类perfrunner.helpers.remote.RemoteHelper
的用法示例。
在下文中一共展示了RemoteHelper.get_system_backup_version方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from perfrunner.helpers.remote import RemoteHelper [as 别名]
# 或者: from perfrunner.helpers.remote.RemoteHelper import get_system_backup_version [as 别名]
def main():
args = get_args()
cluster_spec = ClusterSpec()
cluster_spec.parse(args.cluster_spec_fname)
remote = RemoteHelper(cluster_spec, verbose=False)
logger.info('Recovering system state')
for host, version in remote.get_system_backup_version().items():
remote.start_system_state_recovery(host, version)
示例2: main
# 需要导入模块: from perfrunner.helpers.remote import RemoteHelper [as 别名]
# 或者: from perfrunner.helpers.remote.RemoteHelper import get_system_backup_version [as 别名]
def main():
options, args = get_options()
cluster_spec = ClusterSpec()
cluster_spec.parse(options.cluster_spec_fname, args)
remote = RemoteHelper(cluster_spec, test_config=None, verbose=False)
logger.info('Recovering system state')
for host, version in remote.get_system_backup_version().items():
remote.start_system_state_recovery(host, version)