Example #1
0
 def get_service_name_by_node_process(self, node_process):
     node_process_name = su.get_node_process_name(node_process)
     for service in self.all_services:
         service_node_processes = [np.ui_name
                                   for np in service.node_processes]
         if node_process_name in service_node_processes:
             return service.ui_name
Example #2
0
 def get_service_name_by_node_process(self, node_process):
     node_process_name = su.get_node_process_name(node_process)
     for service in self.all_services:
         service_node_processes = [np.ui_name
                                   for np in service.node_processes]
         if node_process_name in service_node_processes:
             return service.ui_name
Example #3
0
 def get_node_groups(self, node_process=None):
     if node_process is not None:
         node_process = su.get_node_process_name(node_process)
     return u.get_node_groups(self.cluster, node_process)
Example #4
0
 def get_instances_count(self, node_process=None):
     if node_process is not None:
         node_process = su.get_node_process_name(node_process)
     return u.get_instances_count(self.cluster, node_process)
Example #5
0
 def get_instance(self, node_process):
     node_process_name = su.get_node_process_name(node_process)
     instances = u.get_instances(self.cluster, node_process_name)
     return instances[0] if instances else None
Example #6
0
 def get_node_groups(self, node_process=None):
     if node_process is not None:
         node_process = su.get_node_process_name(node_process)
     return u.get_node_groups(self.cluster, node_process)
Example #7
0
 def get_instances_count(self, node_process=None):
     if node_process is not None:
         node_process = su.get_node_process_name(node_process)
     return u.get_instances_count(self.cluster, node_process)
Example #8
0
 def get_instance(self, node_process):
     node_process_name = su.get_node_process_name(node_process)
     instances = u.get_instances(self.cluster, node_process_name)
     return instances[0] if instances else None