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


Python service.service函数代码示例

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


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

示例1: stop

  def stop(self, env):
    import params
    env.set_params(params)

    service('nodemanager',
            action='stop'
    )
开发者ID:OpenPOWER-BigData,项目名称:HDP-ambari,代码行数:7,代码来源:nodemanager.py

示例2: start

  def start(self, env, rolling_restart=False):
    import params
    env.set_params(params)
    self.configure(env)

    supervisord_service("supervisor", action="start")
    service("logviewer", action="start")
开发者ID:fanzhidongyzby,项目名称:ambari,代码行数:7,代码来源:supervisor_prod.py

示例3: start

  def start(self, env):
    import params
    env.set_params(params)
    self.configure(env)

    service("supervisor", action="start")
    service("logviewer", action="start")
开发者ID:OpenPOWER-BigData,项目名称:HDP-ambari,代码行数:7,代码来源:supervisor.py

示例4: start

 def start(self, env):
   import params
   env.set_params(params)
   self.configure(env)
   service('historyserver',
           action='start'
   )
开发者ID:duxia,项目名称:ambari,代码行数:7,代码来源:historyserver.py

示例5: start

 def start(self, env):
   import params
   env.set_params(params)
   self.configure(env) # FOR SECURITY
   service('jobtracker',
           action='start'
   )
开发者ID:wbear2,项目名称:ambari,代码行数:7,代码来源:jobtracker.py

示例6: start

    def start(self, env):
        import params

        env.set_params(params)
        self.configure(env)  # FOR SECURITY
        copy_tarballs_to_hdfs("mapreduce", params.mapred_user, params.hdfs_user, params.user_group)
        service("historyserver", action="start", serviceName="mapreduce")
开发者ID:duxia,项目名称:ambari,代码行数:7,代码来源:historyserver.py

示例7: start

  def start(self, env, rolling_restart=False):
    import params
    env.set_params(params)
    self.configure(env) # FOR SECURITY
    service('timelineserver', action='start')

    Links(params.new_yarn_log_path, params.yarn_log_path)
开发者ID:chinpeng,项目名称:ambari,代码行数:7,代码来源:application_timeline_server.py

示例8: start

    def start(self, env):
        import params

        env.set_params(params)
        self.configure(env)

        service("drpc", action="start")
开发者ID:fanzhidongyzby,项目名称:ambari,代码行数:7,代码来源:drpc_server.py

示例9: start

  def start(self, env):
    import params

    env.set_params(params)
    self.configure(env) # FOR SECURITY
    service('resourcemanager',
            action='start'
    )
开发者ID:OpenPOWER-BigData,项目名称:HDP-ambari,代码行数:8,代码来源:resourcemanager.py

示例10: stop

  def stop(self, env, rolling_restart=False):
    import params

    env.set_params(params)

    service('resourcemanager',
            action='stop'
    )
开发者ID:fanzhidongyzby,项目名称:ambari,代码行数:8,代码来源:resourcemanager.py

示例11: start

  def start(self, env, rolling_restart=False):
    import params

    env.set_params(params)
    self.configure(env) # FOR SECURITY
    if params.has_ranger_admin and params.is_supported_yarn_ranger:
      setup_ranger_yarn() #Ranger Yarn Plugin related calls
    service('resourcemanager', action='start')
开发者ID:andreysabitov,项目名称:ambari-mantl,代码行数:8,代码来源:resourcemanager.py

示例12: refreshqueues

  def refreshqueues(self, env):
    import params

    self.configure(env)
    env.set_params(params)

    service('resourcemanager',
            action='refreshQueues'
    )
开发者ID:OpenPOWER-BigData,项目名称:HDP-ambari,代码行数:9,代码来源:resourcemanager.py

示例13: start

  def start(self, env, rolling_restart=False):
    import params
    env.set_params(params)
    self.configure(env) # FOR SECURITY
    service('nodemanager',action='start')

    Links(params.new_yarn_nodemanager_local_dirs_path, params.yarn_nodemanager_local_dirs_paths)
    Links(params.new_yarn_nodemanager_log_dirs_path, params.yarn_nodemanager_log_dirs_paths)
    Links(params.new_yarn_log_path, params.yarn_log_path)
开发者ID:chinpeng,项目名称:ambari,代码行数:9,代码来源:nodemanager.py

示例14: start

  def start(self, env, upgrade_type=None):
    import params

    env.set_params(params)
    self.configure(env) # FOR SECURITY
    if params.has_ranger_admin and params.is_supported_yarn_ranger:
      setup_ranger_yarn() #Ranger Yarn Plugin related calls

    # wait for active-dir and done-dir to be created by ATS if needed
    if params.has_ats:
      Logger.info("Verifying DFS directories where ATS stores time line data for active and completed applications.")
      self.wait_for_dfs_directories_created(params.entity_groupfs_store_dir, params.entity_groupfs_active_dir)

    service('resourcemanager', action='start')
开发者ID:OpenPOWER-BigData,项目名称:HDP-ambari,代码行数:14,代码来源:resourcemanager.py

示例15: main

def main():
        
        config = ConfigParser.SafeConfigParser()
        config.read('/opt/raumServiceDeamon/src/deamon.cfg')
        
        dataPool = {'security': {'motion': False, 'door': False, 'motion_C': "CLOSED"}, 'weather': {'out': 0.0, 'rain': False, 'in': 0.0}}

        checkRRD(config)
        
        signal.signal(signal.SIGINT, kill_signal_handler)
        signal.signal(signal.SIGTERM, kill_signal_handler)
        
        #fillDummyData(dataPool) # DEBUG
        
        t = UploadDeamon(config, dataPool)
        t.start()

        tem = temperatur(config, dataPool)
        tem.start()
        
        sec = security(config, dataPool, t)
        sec.start()
        
        gra = graph(config)
        gra.start()
        
        global ser
        ser = service(dataPool)
        ser.start()
开发者ID:C3MA,项目名称:c3ma_roomservice,代码行数:29,代码来源:c3ma_deamon.py


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