• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python utils.set_state_task函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中utils.set_state_task函数的典型用法代码示例。如果您正苦于以下问题:Python set_state_task函数的具体用法?Python set_state_task怎么用?Python set_state_task使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了set_state_task函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: _a4c_uninstall

def _a4c_uninstall(ctx, graph, custom_context):
    #  following code can be pasted in src/test/python/workflows/tasks.py for simulation
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'deleting', 'FileSystem_deleting', custom_context)
    custom_context.register_native_delegate_wf_step('AnotherScaleCompute', 'AnotherScaleCompute_uninstall')
    custom_context.register_native_delegate_wf_step('BlockStorage', 'BlockStorage_uninstall')
    set_state_task(ctx, graph, 'FileSystem', 'deleted', 'FileSystem_deleted', custom_context)
    custom_context.register_native_delegate_wf_step('NonScaledCompute', 'NonScaledCompute_uninstall')
    set_state_task(ctx, graph, 'FileSystem', 'stopped', 'FileSystem_stopped', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'stopping', 'FileSystem_stopping', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.delete', 'delete_FileSystem', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.stop', 'stop_FileSystem', custom_context)
    custom_context.register_native_delegate_wf_step('Compute', 'Compute_uninstall')
    custom_context.register_native_delegate_wf_step('NetPub', 'NetPub_uninstall')
    custom_context.register_native_delegate_wf_step('BlockStorage2', 'BlockStorage2_uninstall')
    generate_native_node_workflows(ctx, graph, custom_context, 'uninstall')
    link_tasks(graph, 'FileSystem_deleting', 'FileSystem_stopped', custom_context)
    link_tasks(graph, 'BlockStorage_uninstall', 'FileSystem_deleted', custom_context)
    link_tasks(graph, 'FileSystem_deleted', 'delete_FileSystem', custom_context)
    link_tasks(graph, 'FileSystem_stopped', 'stop_FileSystem', custom_context)
    link_tasks(graph, 'delete_FileSystem', 'FileSystem_deleting', custom_context)
    link_tasks(graph, 'stop_FileSystem', 'FileSystem_stopping', custom_context)
    link_tasks(graph, 'Compute_uninstall', 'FileSystem_deleted', custom_context)
    link_tasks(graph, 'BlockStorage2_uninstall', 'FileSystem_deleted', custom_context)
开发者ID:Padow,项目名称:alien4cloud-cloudify3-provider,代码行数:27,代码来源:workflows.py


示例2: _a4c_uninstall

def _a4c_uninstall(ctx, graph, custom_context):
    #  following code can be pasted in src/test/python/workflows/tasks.py for simulation
    set_state_task(ctx, graph, 'compute', 'deleting', 'compute_deleting', custom_context)
    operation_task(ctx, graph, 'compute', 'cloudify.interfaces.lifecycle.delete', 'delete_compute', custom_context)
    set_state_task(ctx, graph, 'compute', 'stopped', 'compute_stopped', custom_context)
    set_state_task(ctx, graph, 'compute', 'stopping', 'compute_stopping', custom_context)
    set_state_task(ctx, graph, 'compute', 'deleted', 'compute_deleted', custom_context)
    operation_task(ctx, graph, 'compute', 'cloudify.interfaces.lifecycle.stop', 'stop_compute', custom_context)
    link_tasks(graph, 'compute_deleting', 'compute_stopped', custom_context)
    link_tasks(graph, 'delete_compute', 'compute_deleting', custom_context)
    link_tasks(graph, 'compute_stopped', 'stop_compute', custom_context)
    link_tasks(graph, 'compute_deleted', 'delete_compute', custom_context)
    link_tasks(graph, 'stop_compute', 'compute_stopping', custom_context)
开发者ID:vuminhkh,项目名称:alien4cloud-cloudify3-provider,代码行数:13,代码来源:workflows.py


示例3: uninstall_host_database

def uninstall_host_database(ctx, graph, custom_context):
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    set_state_task(ctx, graph, 'Mysql', 'deleted', 'Mysql_deleted', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'deleting', 'Mysql_deleting', custom_context)
    custom_context.register_native_delegate_wf_step('DataBase', 'DataBase_uninstall')
    set_state_task(ctx, graph, 'Mysql', 'stopped', 'Mysql_stopped', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'stopping', 'Mysql_stopping', custom_context)
    generate_native_node_workflows(ctx, graph, custom_context, 'uninstall')
    link_tasks(graph, 'DataBase_uninstall', 'Mysql_deleted', custom_context)
    link_tasks(graph, 'Mysql_deleted', 'Mysql_deleting', custom_context)
    link_tasks(graph, 'Mysql_deleting', 'Mysql_stopped', custom_context)
    link_tasks(graph, 'Mysql_stopped', 'Mysql_stopping', custom_context)
开发者ID:Padow,项目名称:alien4cloud-cloudify3-provider,代码行数:15,代码来源:workflows.py


示例4: uninstall_host_compute

def uninstall_host_compute(ctx, graph, custom_context):
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'deleting', 'FileSystem_deleting', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'deleted', 'FileSystem_deleted', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'stopped', 'FileSystem_stopped', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'stopping', 'FileSystem_stopping', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.delete', 'delete_FileSystem', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.stop', 'stop_FileSystem', custom_context)
    custom_context.register_native_delegate_wf_step('Compute', 'Compute_uninstall')
    generate_native_node_workflows(ctx, graph, custom_context, 'uninstall')
    link_tasks(graph, 'delete_FileSystem', 'FileSystem_deleting', custom_context)
    link_tasks(graph, 'Compute_uninstall', 'FileSystem_deleted', custom_context)
    link_tasks(graph, 'FileSystem_deleting', 'FileSystem_stopped', custom_context)
    link_tasks(graph, 'stop_FileSystem', 'FileSystem_stopping', custom_context)
    link_tasks(graph, 'FileSystem_deleted', 'delete_FileSystem', custom_context)
    link_tasks(graph, 'FileSystem_stopped', 'stop_FileSystem', custom_context)
开发者ID:Padow,项目名称:alien4cloud-cloudify3-provider,代码行数:19,代码来源:workflows.py


示例5: uninstall_host_server

def uninstall_host_server(ctx, graph, custom_context):
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Java')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Java')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('Java')
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Java')
    set_state_task(ctx, graph, 'War', 'deleting', 'War_deleting', custom_context)
    set_state_task(ctx, graph, 'Java', 'stopping', 'Java_stopping', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'deleted', 'Tomcat_deleted', custom_context)
    set_state_task(ctx, graph, 'War', 'stopping', 'War_stopping', custom_context)
    operation_task(ctx, graph, 'Tomcat', 'cloudify.interfaces.lifecycle.stop', 'stop_Tomcat', custom_context)
    set_state_task(ctx, graph, 'Java', 'deleting', 'Java_deleting', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'stopped', 'Tomcat_stopped', custom_context)
    custom_context.register_native_delegate_wf_step('Server', 'Server_uninstall')
    set_state_task(ctx, graph, 'War', 'stopped', 'War_stopped', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'stopping', 'Tomcat_stopping', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'deleting', 'Tomcat_deleting', custom_context)
    set_state_task(ctx, graph, 'Java', 'stopped', 'Java_stopped', custom_context)
    set_state_task(ctx, graph, 'War', 'deleted', 'War_deleted', custom_context)
    set_state_task(ctx, graph, 'Java', 'deleted', 'Java_deleted', custom_context)
    generate_native_node_workflows(ctx, graph, custom_context, 'uninstall')
    link_tasks(graph, 'War_deleted', 'War_deleting', custom_context)
    link_tasks(graph, 'Java_stopped', 'Java_stopping', custom_context)
    link_tasks(graph, 'Server_uninstall', 'Tomcat_deleted', custom_context)
    link_tasks(graph, 'War_stopped', 'War_stopping', custom_context)
    link_tasks(graph, 'Tomcat_stopped', 'stop_Tomcat', custom_context)
    link_tasks(graph, 'Java_deleted', 'Java_deleting', custom_context)
    link_tasks(graph, 'Tomcat_deleting', 'Tomcat_stopped', custom_context)
    link_tasks(graph, 'War_deleting', 'War_stopped', custom_context)
    link_tasks(graph, 'stop_Tomcat', 'Tomcat_stopping', custom_context)
    link_tasks(graph, 'Tomcat_deleted', 'Tomcat_deleting', custom_context)
    link_tasks(graph, 'Java_deleting', 'Java_stopped', custom_context)
    link_tasks(graph, 'Tomcat_stopping', 'War_deleted', custom_context)
    link_tasks(graph, 'Server_uninstall', 'Java_deleted', custom_context)
开发者ID:alien4cloud,项目名称:alien4cloud-cloudify3-provider,代码行数:41,代码来源:workflows.py


示例6: install_host_database

def install_host_database(ctx, graph, custom_context):
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    custom_context.add_customized_wf_node('Mysql')
    set_state_task(ctx, graph, 'Mysql', 'configuring', 'Mysql_configuring', custom_context)
    operation_task(ctx, graph, 'Mysql', 'cloudify.interfaces.lifecycle.create', 'create_Mysql', custom_context)
    operation_task(ctx, graph, 'Mysql', 'cloudify.interfaces.lifecycle.configure', 'configure_Mysql', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'created', 'Mysql_created', custom_context)
    custom_context.register_native_delegate_wf_step('DataBase', 'DataBase_install')
    set_state_task(ctx, graph, 'Mysql', 'creating', 'Mysql_creating', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'starting', 'Mysql_starting', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'configured', 'Mysql_configured', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'started', 'Mysql_started', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'initial', 'Mysql_initial', custom_context)
    operation_task(ctx, graph, 'Mysql', 'cloudify.interfaces.lifecycle.start', 'start_Mysql', custom_context)
    generate_native_node_workflows(ctx, graph, custom_context, 'install')
    link_tasks(graph, 'configure_Mysql', 'Mysql_configuring', custom_context)
    link_tasks(graph, 'Mysql_created', 'create_Mysql', custom_context)
    link_tasks(graph, 'Mysql_configured', 'configure_Mysql', custom_context)
    link_tasks(graph, 'Mysql_configuring', 'Mysql_created', custom_context)
    link_tasks(graph, 'Mysql_initial', 'DataBase_install', custom_context)
    link_tasks(graph, 'create_Mysql', 'Mysql_creating', custom_context)
    link_tasks(graph, 'start_Mysql', 'Mysql_starting', custom_context)
    link_tasks(graph, 'Mysql_starting', 'Mysql_configured', custom_context)
    link_tasks(graph, 'Mysql_creating', 'Mysql_initial', custom_context)
    link_tasks(graph, 'Mysql_started', 'start_Mysql', custom_context)
开发者ID:Padow,项目名称:alien4cloud-cloudify3-provider,代码行数:30,代码来源:workflows.py


示例7: install_host_server

def install_host_server(ctx, graph, custom_context):
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('PHP')
    set_state_task(ctx, graph, 'PHP', 'starting', 'PHP_starting', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'started', 'Wordpress_started', custom_context)
    set_state_task(ctx, graph, 'Apache', 'initial', 'Apache_initial', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'configured', 'Wordpress_configured', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'starting', 'Wordpress_starting', custom_context)
    operation_task(ctx, graph, 'PHP', 'cloudify.interfaces.lifecycle.start', 'start_PHP', custom_context)
    set_state_task(ctx, graph, 'Apache', 'starting', 'Apache_starting', custom_context)
    set_state_task(ctx, graph, 'PHP', 'configuring', 'PHP_configuring', custom_context)
    custom_context.register_native_delegate_wf_step('Server', 'Server_install')
    set_state_task(ctx, graph, 'PHP', 'created', 'PHP_created', custom_context)
    operation_task(ctx, graph, 'Wordpress', 'cloudify.interfaces.lifecycle.start', 'start_Wordpress', custom_context)
    operation_task(ctx, graph, 'Apache', 'cloudify.interfaces.lifecycle.configure', 'configure_Apache', custom_context)
    operation_task(ctx, graph, 'Apache', 'cloudify.interfaces.lifecycle.create', 'create_Apache', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'initial', 'Wordpress_initial', custom_context)
    set_state_task(ctx, graph, 'Apache', 'configured', 'Apache_configured', custom_context)
    set_state_task(ctx, graph, 'PHP', 'started', 'PHP_started', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'configuring', 'Wordpress_configuring', custom_context)
    set_state_task(ctx, graph, 'PHP', 'creating', 'PHP_creating', custom_context)
    operation_task(ctx, graph, 'Wordpress', 'cloudify.interfaces.lifecycle.configure', 'configure_Wordpress', custom_context)
    set_state_task(ctx, graph, 'Apache', 'creating', 'Apache_creating', custom_context)
    operation_task(ctx, graph, 'PHP', 'cloudify.interfaces.lifecycle.create', 'create_PHP', custom_context)
    operation_task(ctx, graph, 'Apache', 'cloudify.interfaces.lifecycle.start', 'start_Apache', custom_context)
    operation_task(ctx, graph, 'PHP', 'cloudify.interfaces.lifecycle.configure', 'configure_PHP', custom_context)
    operation_task(ctx, graph, 'Wordpress', 'cloudify.interfaces.lifecycle.create', 'create_Wordpress', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'creating', 'Wordpress_creating', custom_context)
    set_state_task(ctx, graph, 'Apache', 'created', 'Apache_created', custom_context)
    set_state_task(ctx, graph, 'Apache', 'started', 'Apache_started', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'created', 'Wordpress_created', custom_context)
    set_state_task(ctx, graph, 'Apache', 'configuring', 'Apache_configuring', custom_context)
    set_state_task(ctx, graph, 'PHP', 'initial', 'PHP_initial', custom_context)
    set_state_task(ctx, graph, 'PHP', 'configured', 'PHP_configured', custom_context)
    generate_native_node_workflows(ctx, graph, custom_context, 'install')
    link_tasks(graph, 'start_PHP', 'PHP_starting', custom_context)
    link_tasks(graph, 'Apache_creating', 'Apache_initial', custom_context)
    link_tasks(graph, 'Wordpress_starting', 'Wordpress_configured', custom_context)
    link_tasks(graph, 'start_Wordpress', 'Wordpress_starting', custom_context)
    link_tasks(graph, 'PHP_started', 'start_PHP', custom_context)
    link_tasks(graph, 'start_Apache', 'Apache_starting', custom_context)
    link_tasks(graph, 'configure_PHP', 'PHP_configuring', custom_context)
    link_tasks(graph, 'Apache_initial', 'Server_install', custom_context)
    link_tasks(graph, 'PHP_initial', 'Server_install', custom_context)
    link_tasks(graph, 'PHP_configuring', 'PHP_created', custom_context)
    link_tasks(graph, 'Wordpress_started', 'start_Wordpress', custom_context)
    link_tasks(graph, 'Apache_configured', 'configure_Apache', custom_context)
    link_tasks(graph, 'Apache_created', 'create_Apache', custom_context)
    link_tasks(graph, 'Wordpress_creating', 'Wordpress_initial', custom_context)
    link_tasks(graph, 'Apache_starting', 'Apache_configured', custom_context)
    link_tasks(graph, 'Wordpress_configuring', 'PHP_started', custom_context)
    link_tasks(graph, 'configure_Wordpress', 'Wordpress_configuring', custom_context)
    link_tasks(graph, 'create_PHP', 'PHP_creating', custom_context)
    link_tasks(graph, 'Wordpress_configured', 'configure_Wordpress', custom_context)
    link_tasks(graph, 'create_Apache', 'Apache_creating', custom_context)
    link_tasks(graph, 'PHP_created', 'create_PHP', custom_context)
    link_tasks(graph, 'Apache_started', 'start_Apache', custom_context)
    link_tasks(graph, 'PHP_configured', 'configure_PHP', custom_context)
    link_tasks(graph, 'Wordpress_created', 'create_Wordpress', custom_context)
    link_tasks(graph, 'create_Wordpress', 'Wordpress_creating', custom_context)
    link_tasks(graph, 'Apache_configuring', 'Apache_created', custom_context)
    link_tasks(graph, 'Wordpress_initial', 'Apache_started', custom_context)
    link_tasks(graph, 'PHP_configuring', 'Wordpress_created', custom_context)
    link_tasks(graph, 'Wordpress_configuring', 'Wordpress_created', custom_context)
    link_tasks(graph, 'configure_Apache', 'Apache_configuring', custom_context)
    link_tasks(graph, 'PHP_creating', 'PHP_initial', custom_context)
    link_tasks(graph, 'PHP_starting', 'PHP_configured', custom_context)
开发者ID:Padow,项目名称:alien4cloud-cloudify3-provider,代码行数:86,代码来源:workflows.py


示例8: _a4c_uninstall

def _a4c_uninstall(ctx, graph, custom_context):
    #  following code can be pasted in src/test/python/workflows/tasks.py for simulation
    set_state_task(ctx, graph, 'Tomcat', 'deleted', 'Tomcat_deleted', custom_context)
    set_state_task(ctx, graph, 'Server', 'stopped', 'Server_stopped', custom_context)
    set_state_task(ctx, graph, 'War', 'deleting', 'War_deleting', custom_context)
    set_state_task(ctx, graph, 'Artifact_Directory_Test', 'deleting', 'Artifact_Directory_Test_deleting', custom_context)
    set_state_task(ctx, graph, 'Server', 'stopping', 'Server_stopping', custom_context)
    set_state_task(ctx, graph, '_a4c_floating_ip_Server', 'deleting', '_a4c_floating_ip_Server_deleting', custom_context)
    set_state_task(ctx, graph, 'Server', 'deleting', 'Server_deleting', custom_context)
    set_state_task(ctx, graph, '_a4c_floating_ip_Server', 'deleted', '_a4c_floating_ip_Server_deleted', custom_context)
    set_state_task(ctx, graph, 'Java', 'deleting', 'Java_deleting', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'stopping', 'Tomcat_stopping', custom_context)
    set_state_task(ctx, graph, 'Artifact_Directory_Test', 'deleted', 'Artifact_Directory_Test_deleted', custom_context)
    operation_task(ctx, graph, '_a4c_floating_ip_Server', 'cloudify.interfaces.lifecycle.delete', 'delete__a4c_floating_ip_Server', custom_context)
    set_state_task(ctx, graph, 'War', 'stopping', 'War_stopping', custom_context)
    set_state_task(ctx, graph, 'Artifact_Directory_Test', 'stopped', 'Artifact_Directory_Test_stopped', custom_context)
    operation_task(ctx, graph, 'Tomcat', 'cloudify.interfaces.lifecycle.stop', 'stop_Tomcat', custom_context)
    set_state_task(ctx, graph, 'Server', 'deleted', 'Server_deleted', custom_context)
    set_state_task(ctx, graph, 'Artifact_Directory_Test', 'stopping', 'Artifact_Directory_Test_stopping', custom_context)
    set_state_task(ctx, graph, '_a4c_floating_ip_Server', 'stopping', '_a4c_floating_ip_Server_stopping', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'deleting', 'Tomcat_deleting', custom_context)
    set_state_task(ctx, graph, '_a4c_floating_ip_Server', 'stopped', '_a4c_floating_ip_Server_stopped', custom_context)
    set_state_task(ctx, graph, 'Java', 'stopped', 'Java_stopped', custom_context)
    set_state_task(ctx, graph, 'Java', 'stopping', 'Java_stopping', custom_context)
    set_state_task(ctx, graph, 'War', 'deleted', 'War_deleted', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'stopped', 'Tomcat_stopped', custom_context)
    operation_task(ctx, graph, '_a4c_floating_ip_Server', 'cloudify.interfaces.lifecycle.stop', 'stop__a4c_floating_ip_Server', custom_context)
    operation_task(ctx, graph, 'Server', 'cloudify.interfaces.lifecycle.stop', 'stop_Server', custom_context)
    operation_task(ctx, graph, 'Server', 'cloudify.interfaces.lifecycle.delete', 'delete_Server', custom_context)
    set_state_task(ctx, graph, 'Java', 'deleted', 'Java_deleted', custom_context)
    set_state_task(ctx, graph, 'War', 'stopped', 'War_stopped', custom_context)
    link_tasks(graph, 'Tomcat_deleted', 'Tomcat_deleting', custom_context)
    link_tasks(graph, 'Server_stopped', 'stop_Server', custom_context)
    link_tasks(graph, 'War_deleting', 'War_stopped', custom_context)
    link_tasks(graph, 'Artifact_Directory_Test_deleting', 'Artifact_Directory_Test_stopped', custom_context)
    link_tasks(graph, 'Server_stopping', 'Tomcat_deleted', custom_context)
    link_tasks(graph, 'Server_stopping', 'Artifact_Directory_Test_deleted', custom_context)
    link_tasks(graph, 'Server_stopping', 'Java_deleted', custom_context)
    link_tasks(graph, '_a4c_floating_ip_Server_deleting', '_a4c_floating_ip_Server_stopped', custom_context)
    link_tasks(graph, 'Server_deleting', 'Server_stopped', custom_context)
    link_tasks(graph, '_a4c_floating_ip_Server_deleted', 'delete__a4c_floating_ip_Server', custom_context)
    link_tasks(graph, 'Java_deleting', 'Java_stopped', custom_context)
    link_tasks(graph, 'Tomcat_stopping', 'War_deleted', custom_context)
    link_tasks(graph, 'Artifact_Directory_Test_deleted', 'Artifact_Directory_Test_deleting', custom_context)
    link_tasks(graph, 'delete__a4c_floating_ip_Server', '_a4c_floating_ip_Server_deleting', custom_context)
    link_tasks(graph, 'Artifact_Directory_Test_stopped', 'Artifact_Directory_Test_stopping', custom_context)
    link_tasks(graph, 'stop_Tomcat', 'Tomcat_stopping', custom_context)
    link_tasks(graph, 'Server_deleted', 'delete_Server', custom_context)
    link_tasks(graph, '_a4c_floating_ip_Server_stopping', 'Server_deleted', custom_context)
    link_tasks(graph, 'Tomcat_deleting', 'Tomcat_stopped', custom_context)
    link_tasks(graph, '_a4c_floating_ip_Server_stopped', 'stop__a4c_floating_ip_Server', custom_context)
    link_tasks(graph, 'Java_stopped', 'Java_stopping', custom_context)
    link_tasks(graph, 'War_deleted', 'War_deleting', custom_context)
    link_tasks(graph, 'Tomcat_stopped', 'stop_Tomcat', custom_context)
    link_tasks(graph, 'stop__a4c_floating_ip_Server', '_a4c_floating_ip_Server_stopping', custom_context)
    link_tasks(graph, 'stop_Server', 'Server_stopping', custom_context)
    link_tasks(graph, 'delete_Server', 'Server_deleting', custom_context)
    link_tasks(graph, 'Java_deleted', 'Java_deleting', custom_context)
    link_tasks(graph, 'War_stopped', 'War_stopping', custom_context)
开发者ID:loicalbertin,项目名称:alien4cloud-cloudify3-provider,代码行数:59,代码来源:workflows.py


示例9: uninstall_host_server

def uninstall_host_server(ctx, graph, custom_context):
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('Apache')
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('PHP')
    custom_context.add_customized_wf_node('Wordpress')
    custom_context.add_customized_wf_node('PHP')
    set_state_task(ctx, graph, 'PHP', 'stopping', 'PHP_stopping', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'deleting', 'Wordpress_deleting', custom_context)
    set_state_task(ctx, graph, 'Apache', 'stopped', 'Apache_stopped', custom_context)
    set_state_task(ctx, graph, 'Apache', 'deleted', 'Apache_deleted', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'deleted', 'Wordpress_deleted', custom_context)
    set_state_task(ctx, graph, 'Apache', 'deleting', 'Apache_deleting', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'stopped', 'Wordpress_stopped', custom_context)
    set_state_task(ctx, graph, 'Apache', 'stopping', 'Apache_stopping', custom_context)
    set_state_task(ctx, graph, 'PHP', 'deleting', 'PHP_deleting', custom_context)
    custom_context.register_native_delegate_wf_step('Server', 'Server_uninstall')
    set_state_task(ctx, graph, 'PHP', 'stopped', 'PHP_stopped', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'stopping', 'Wordpress_stopping', custom_context)
    set_state_task(ctx, graph, 'PHP', 'deleted', 'PHP_deleted', custom_context)
    generate_native_node_workflows(ctx, graph, custom_context, 'uninstall')
    link_tasks(graph, 'PHP_stopped', 'PHP_stopping', custom_context)
    link_tasks(graph, 'Wordpress_deleted', 'Wordpress_deleting', custom_context)
    link_tasks(graph, 'Apache_deleting', 'Apache_stopped', custom_context)
    link_tasks(graph, 'Server_uninstall', 'Apache_deleted', custom_context)
    link_tasks(graph, 'Apache_stopping', 'Wordpress_deleted', custom_context)
    link_tasks(graph, 'Apache_deleted', 'Apache_deleting', custom_context)
    link_tasks(graph, 'Wordpress_deleting', 'Wordpress_stopped', custom_context)
    link_tasks(graph, 'Apache_stopped', 'Apache_stopping', custom_context)
    link_tasks(graph, 'PHP_deleted', 'PHP_deleting', custom_context)
    link_tasks(graph, 'PHP_deleting', 'PHP_stopped', custom_context)
    link_tasks(graph, 'Wordpress_stopped', 'Wordpress_stopping', custom_context)
    link_tasks(graph, 'Server_uninstall', 'PHP_deleted', custom_context)
开发者ID:Padow,项目名称:alien4cloud-cloudify3-provider,代码行数:39,代码来源:workflows.py


示例10: _a4c_uninstall

def _a4c_uninstall(ctx, graph, custom_context):
    #  following code can be pasted in src/test/python/workflows/tasks.py for simulation
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Java')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Java')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('Tomcat')
    custom_context.add_customized_wf_node('Java')
    custom_context.add_customized_wf_node('War')
    custom_context.add_customized_wf_node('Java')
    set_state_task(ctx, graph, 'War', 'deleting', 'War_deleting', custom_context)
    set_state_task(ctx, graph, 'Java', 'stopping', 'Java_stopping', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'deleted', 'Tomcat_deleted', custom_context)
    set_state_task(ctx, graph, 'War', 'stopping', 'War_stopping', custom_context)
    operation_task(ctx, graph, 'Tomcat', 'cloudify.interfaces.lifecycle.stop', 'stop_Tomcat', custom_context)
    custom_context.register_native_delegate_wf_step('NetPub', 'NetPub_uninstall')
    set_state_task(ctx, graph, 'Java', 'deleting', 'Java_deleting', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'stopped', 'Tomcat_stopped', custom_context)
    custom_context.register_native_delegate_wf_step('Server', 'Server_uninstall')
    set_state_task(ctx, graph, 'War', 'stopped', 'War_stopped', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'stopping', 'Tomcat_stopping', custom_context)
    set_state_task(ctx, graph, 'Tomcat', 'deleting', 'Tomcat_deleting', custom_context)
    set_state_task(ctx, graph, 'Java', 'stopped', 'Java_stopped', custom_context)
    set_state_task(ctx, graph, 'War', 'deleted', 'War_deleted', custom_context)
    set_state_task(ctx, graph, 'Java', 'deleted', 'Java_deleted', custom_context)
    generate_native_node_workflows(ctx, graph, custom_context, 'uninstall')
    link_tasks(graph, 'War_deleting', 'War_stopped', custom_context)
    link_tasks(graph, 'Tomcat_deleted', 'Tomcat_deleting', custom_context)
    link_tasks(graph, 'stop_Tomcat', 'Tomcat_stopping', custom_context)
    link_tasks(graph, 'Java_deleting', 'Java_stopped', custom_context)
    link_tasks(graph, 'Tomcat_stopped', 'stop_Tomcat', custom_context)
    link_tasks(graph, 'Server_uninstall', 'Tomcat_deleted', custom_context)
    link_tasks(graph, 'Server_uninstall', 'Java_deleted', custom_context)
    link_tasks(graph, 'War_stopped', 'War_stopping', custom_context)
    link_tasks(graph, 'Tomcat_stopping', 'War_deleted', custom_context)
    link_tasks(graph, 'Tomcat_deleting', 'Tomcat_stopped', custom_context)
    link_tasks(graph, 'Java_stopped', 'Java_stopping', custom_context)
    link_tasks(graph, 'War_deleted', 'War_deleting', custom_context)
    link_tasks(graph, 'Java_deleted', 'Java_deleting', custom_context)
开发者ID:alien4cloud,项目名称:alien4cloud-cloudify3-provider,代码行数:43,代码来源:workflows.py


示例11: _a4c_install

def _a4c_install(ctx, graph, custom_context):
    #  following code can be pasted in src/test/python/workflows/tasks.py for simulation
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'starting', 'FileSystem_starting', custom_context)
    custom_context.register_native_delegate_wf_step('BlockStorage', 'BlockStorage_install')
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'configured', 'FileSystem_configured', custom_context)
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'configuring', 'FileSystem_configuring', custom_context)
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'initial', 'FileSystem_initial', custom_context)
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'created', 'FileSystem_created', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.configure', 'configure_FileSystem', custom_context)
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'creating', 'FileSystem_creating', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.start', 'start_FileSystem', custom_context)
    custom_context.register_native_delegate_wf_step('Compute', 'Compute_install')
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'started', 'FileSystem_started', custom_context)
    custom_context.register_native_delegate_wf_step('DeletableBlockStorage', 'DeletableBlockStorage_install')
    generate_native_node_workflows(ctx, graph, custom_context, 'install')
    link_tasks(graph, 'FileSystem_starting', 'FileSystem_configured', custom_context)
    link_tasks(graph, 'FileSystem_configured', 'configure_FileSystem', custom_context)
    link_tasks(graph, 'FileSystem_configuring', 'FileSystem_created', custom_context)
    link_tasks(graph, 'FileSystem_initial', 'BlockStorage_install', custom_context)
    link_tasks(graph, 'FileSystem_initial', 'Compute_install', custom_context)
    link_tasks(graph, 'FileSystem_created', 'FileSystem_creating', custom_context)
    link_tasks(graph, 'configure_FileSystem', 'FileSystem_configuring', custom_context)
    link_tasks(graph, 'FileSystem_creating', 'FileSystem_initial', custom_context)
    link_tasks(graph, 'start_FileSystem', 'FileSystem_starting', custom_context)
    link_tasks(graph, 'FileSystem_started', 'start_FileSystem', custom_context)
开发者ID:loicalbertin,项目名称:alien4cloud-cloudify3-provider,代码行数:32,代码来源:workflows.py


示例12: _a4c_uninstall

def _a4c_uninstall(ctx, graph, custom_context):
    #  following code can be pasted in src/test/python/workflows/tasks.py for simulation
    set_state_task(ctx, graph, "Wordpress", "deleted", "Wordpress_deleted", custom_context)
    set_state_task(ctx, graph, "Apache", "stopped", "Apache_stopped", custom_context)
    set_state_task(ctx, graph, "Apache", "stopping", "Apache_stopping", custom_context)
    operation_task(ctx, graph, "DataBase", "cloudify.interfaces.lifecycle.delete", "delete_DataBase", custom_context)
    set_state_task(ctx, graph, "PHP", "stopping", "PHP_stopping", custom_context)
    operation_task(ctx, graph, "Server", "cloudify.interfaces.lifecycle.stop", "stop_Server", custom_context)
    set_state_task(ctx, graph, "DataBase", "deleting", "DataBase_deleting", custom_context)
    set_state_task(ctx, graph, "Server", "deleting", "Server_deleting", custom_context)
    set_state_task(ctx, graph, "PHP", "deleted", "PHP_deleted", custom_context)
    operation_task(
        ctx, graph, "InternalNetwork", "cloudify.interfaces.lifecycle.stop", "stop_InternalNetwork", custom_context
    )
    set_state_task(ctx, graph, "Wordpress", "stopped", "Wordpress_stopped", custom_context)
    set_state_task(ctx, graph, "InternalNetwork", "deleted", "InternalNetwork_deleted", custom_context)
    set_state_task(ctx, graph, "Mysql", "stopping", "Mysql_stopping", custom_context)
    set_state_task(ctx, graph, "Wordpress", "deleting", "Wordpress_deleting", custom_context)
    set_state_task(ctx, graph, "NetPub", "stopping", "NetPub_stopping", custom_context)
    operation_task(ctx, graph, "Server", "cloudify.interfaces.lifecycle.delete", "delete_Server", custom_context)
    operation_task(ctx, graph, "NetPub", "cloudify.interfaces.lifecycle.stop", "stop_NetPub", custom_context)
    set_state_task(ctx, graph, "Apache", "deleting", "Apache_deleting", custom_context)
    set_state_task(ctx, graph, "InternalNetwork", "stopped", "InternalNetwork_stopped", custom_context)
    set_state_task(ctx, graph, "NetPub", "deleted", "NetPub_deleted", custom_context)
    set_state_task(ctx, graph, "Server", "stopped", "Server_stopped", custom_context)
    set_state_task(ctx, graph, "Wordpress", "stopping", "Wordpress_stopping", custom_context)
    set_state_task(ctx, graph, "PHP", "deleting", "PHP_deleting", custom_context)
    set_state_task(ctx, graph, "Mysql", "deleting", "Mysql_deleting", custom_context)
    set_state_task(ctx, graph, "Server", "stopping", "Server_stopping", custom_context)
    set_state_task(ctx, graph, "NetPub", "deleting", "NetPub_deleting", custom_context)
    operation_task(ctx, graph, "DataBase", "cloudify.interfaces.lifecycle.stop", "stop_DataBase", custom_context)
    set_state_task(ctx, graph, "DataBase", "deleted", "DataBase_deleted", custom_context)
    set_state_task(ctx, graph, "PHP", "stopped", "PHP_stopped", custom_context)
    operation_task(
        ctx, graph, "InternalNetwork", "cloudify.interfaces.lifecycle.delete", "delete_InternalNetwork", custom_context
    )
    set_state_task(ctx, graph, "InternalNetwork", "stopping", "InternalNetwork_stopping", custom_context)
    set_state_task(ctx, graph, "NetPub", "stopped", "NetPub_stopped", custom_context)
    set_state_task(ctx, graph, "InternalNetwork", "deleting", "InternalNetwork_deleting", custom_context)
    set_state_task(ctx, graph, "DataBase", "stopped", "DataBase_stopped", custom_context)
    set_state_task(ctx, graph, "Server", "deleted", "Server_deleted", custom_context)
    set_state_task(ctx, graph, "Mysql", "stopped", "Mysql_stopped", custom_context)
    operation_task(ctx, graph, "NetPub", "cloudify.interfaces.lifecycle.delete", "delete_NetPub", custom_context)
    set_state_task(ctx, graph, "DataBase", "stopping", "DataBase_stopping", custom_context)
    set_state_task(ctx, graph, "Apache", "deleted", "Apache_deleted", custom_context)
    set_state_task(ctx, graph, "Mysql", "deleted", "Mysql_deleted", custom_context)
    link_tasks(graph, "Wordpress_deleted", "Wordpress_deleting", custom_context)
    link_tasks(graph, "Apache_stopped", "Apache_stopping", custom_context)
    link_tasks(graph, "Apache_stopping", "Wordpress_deleted", custom_context)
    link_tasks(graph, "delete_DataBase", "DataBase_deleting", custom_context)
    link_tasks(graph, "stop_Server", "Server_stopping", custom_context)
    link_tasks(graph, "DataBase_deleting", "DataBase_stopped", custom_context)
    link_tasks(graph, "Server_deleting", "Server_stopped", custom_context)
    link_tasks(graph, "PHP_deleted", "PHP_deleting", custom_context)
    link_tasks(graph, "stop_InternalNetwork", "InternalNetwork_stopping", custom_context)
    link_tasks(graph, "Wordpress_stopped", "Wordpress_stopping", custom_context)
    link_tasks(graph, "InternalNetwork_deleted", "delete_InternalNetwork", custom_context)
    link_tasks(graph, "Wordpress_deleting", "Wordpress_stopped", custom_context)
    link_tasks(graph, "delete_Server", "Server_deleting", custom_context)
    link_tasks(graph, "stop_NetPub", "NetPub_stopping", custom_context)
    link_tasks(graph, "Apache_deleting", "Apache_stopped", custom_context)
    link_tasks(graph, "InternalNetwork_stopped", "stop_InternalNetwork", custom_context)
    link_tasks(graph, "NetPub_deleted", "delete_NetPub", custom_context)
    link_tasks(graph, "Server_stopped", "stop_Server", custom_context)
    link_tasks(graph, "PHP_deleting", "PHP_stopped", custom_context)
    link_tasks(graph, "Mysql_deleting", "Mysql_stopped", custom_context)
    link_tasks(graph, "Server_stopping", "Apache_deleted", custom_context)
    link_tasks(graph, "Server_stopping", "PHP_deleted", custom_context)
    link_tasks(graph, "NetPub_deleting", "NetPub_stopped", custom_context)
    link_tasks(graph, "stop_DataBase", "DataBase_stopping", custom_context)
    link_tasks(graph, "DataBase_deleted", "delete_DataBase", custom_context)
    link_tasks(graph, "PHP_stopped", "PHP_stopping", custom_context)
    link_tasks(graph, "delete_InternalNetwork", "InternalNetwork_deleting", custom_context)
    link_tasks(graph, "NetPub_stopped", "stop_NetPub", custom_context)
    link_tasks(graph, "InternalNetwork_deleting", "InternalNetwork_stopped", custom_context)
    link_tasks(graph, "DataBase_stopped", "stop_DataBase", custom_context)
    link_tasks(graph, "Server_deleted", "delete_Server", custom_context)
    link_tasks(graph, "Mysql_stopped", "Mysql_stopping", custom_context)
    link_tasks(graph, "delete_NetPub", "NetPub_deleting", custom_context)
    link_tasks(graph, "DataBase_stopping", "Mysql_deleted", custom_context)
    link_tasks(graph, "Apache_deleted", "Apache_deleting", custom_context)
    link_tasks(graph, "Mysql_deleted", "Mysql_deleting", custom_context)
开发者ID:OresteVisari,项目名称:alien4cloud-cloudify3-provider,代码行数:82,代码来源:workflows.py


示例13: install_host_compute

def install_host_compute(ctx, graph, custom_context):
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    custom_context.add_customized_wf_node('FileSystem')
    set_state_task(ctx, graph, 'FileSystem', 'starting', 'FileSystem_starting', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'configuring', 'FileSystem_configuring', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'configured', 'FileSystem_configured', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'created', 'FileSystem_created', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'creating', 'FileSystem_creating', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.configure', 'configure_FileSystem', custom_context)
    custom_context.register_native_delegate_wf_step('Compute', 'Compute_install')
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.start', 'start_FileSystem', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'started', 'FileSystem_started', custom_context)
    set_state_task(ctx, graph, 'FileSystem', 'initial', 'FileSystem_initial', custom_context)
    operation_task(ctx, graph, 'FileSystem', 'cloudify.interfaces.lifecycle.create', 'create_FileSystem', custom_context)
    generate_native_node_workflows(ctx, graph, custom_context, 'install')
    link_tasks(graph, 'start_FileSystem', 'FileSystem_starting', custom_context)
    link_tasks(graph, 'configure_FileSystem', 'FileSystem_configuring', custom_context)
    link_tasks(graph, 'FileSystem_starting', 'FileSystem_configured', custom_context)
    link_tasks(graph, 'FileSystem_configuring', 'FileSystem_created', custom_context)
    link_tasks(graph, 'create_FileSystem', 'FileSystem_creating', custom_context)
    link_tasks(graph, 'FileSystem_configured', 'configure_FileSystem', custom_context)
    link_tasks(graph, 'FileSystem_initial', 'Compute_install', custom_context)
    link_tasks(graph, 'FileSystem_started', 'start_FileSystem', custom_context)
    link_tasks(graph, 'FileSystem_creating', 'FileSystem_initial', custom_context)
    link_tasks(graph, 'FileSystem_created', 'create_FileSystem', custom_context)
开发者ID:Padow,项目名称:alien4cloud-cloudify3-provider,代码行数:30,代码来源:workflows.py


示例14: _a4c_install

def _a4c_install(ctx, graph, custom_context):
    #  following code can be pasted in src/test/python/workflows/tasks.py for simulation
    set_state_task(ctx, graph, '_a4c_file_system_DataBaseStorage', 'configuring', '_a4c_file_system_DataBaseStorage_configuring', custom_context)
    operation_task(ctx, graph, 'DataBase', 'cloudify.interfaces.lifecycle.create', 'create_DataBase', custom_context)
    set_state_task(ctx, graph, 'Server', 'configuring', 'Server_configuring', custom_context)
    set_state_task(ctx, graph, 'DataBaseStorage', 'starting', 'DataBaseStorage_starting', custom_context)
    set_state_task(ctx, graph, 'Mysql', 'configuring', 'Mysql_configuring', custom_context)
    operation_task(ctx, graph, 'Server', 'cloudify.interfaces.lifecycle.create', 'create_Server', custom_context)
    set_state_task(ctx, graph, 'Server', 'initial', 'Server_initial', custom_context)
    set_state_task(ctx, graph, 'Server', 'started', 'Server_started', custom_context)
    operation_task(ctx, graph, 'InternalNetwork', 'cloudify.interfaces.lifecycle.create', 'create_InternalNetwork', custom_context)
    operation_task(ctx, graph, 'Mysql', 'cloudify.interfaces.lifecycle.configure', 'configure_Mysql', custom_context)
    operation_task(ctx, graph, 'DataBaseStorage', 'cloudify.interfaces.lifecycle.start', 'start_DataBaseStorage', custom_context)
    set_state_task(ctx, graph, 'DataBaseStorage', 'configured', 'DataBaseStorage_configured', custom_context)
    set_state_task(ctx, graph, 'InternalNetwork', 'configuring', 'InternalNetwork_configuring', custom_context)
    set_state_task(ctx, graph, 'Wordpress', 'starting', 'Wordpress_starting', custom_context)
    set 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python utils.set_utcnow_for_test函数代码示例发布时间:2022-05-26
下一篇:
Python utils.send_oauth_error函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap