parameters: (self, hosts, client)
return_statement: return clients
docstring: Start a client binary on a set of nodes.
          @param hosts: List of (hostname, ip, id) tuples describing the
                        nodes on which to start the client binary.
                        Each binary is launch with a --numClients and
                        --clientIndex argument.
          @param client: Path to the client binary to run along with any
                         args to pass to each client.
          @return: Sandbox.Process representing the client process.
docstring_summary: Start a client binary on a set of nodes.
docstring_tokens: Start a client binary on a set of nodes .
function: def start_clients(self, hosts, client):
          """Start a client binary on a set of nodes.
          @param hosts: List of (hostname, ip, id) tuples describing the
                        nodes on which to start the client binary.
                        Each binary is launch with a --numClients and
                        --clientIndex argument.
          @param client: Path to the client binary to run along with any
                         args to pass to each client.
          @return: Sandbox.Process representing the client process.
          """
          num_clients = len(hosts)
          args = client.split(' ')
          client_bin = args[0]
          client_args = ' '.join(args[1:])
          clients = []
          for i, client_host in enumerate(hosts):
              command = ('%s %s -C %s --numClients %d --clientIndex %d '
                         '--logFile %s/client%d.%s.log %s' %
                         (prefix_command,
                          client_bin, self.coordinator_locator, num_clients,
                          i, self.log_subdir, self.next_client_id,
                          client_host[0], client_args))
              self.next_client_id += 1
              clients.append(self.sandbox.rsh(client_host[0], command, bg=True))
              if self.verbose:
                  print('Client %d started on %s: %s' % (i, client_host[0],
                          command))
          return clients
function_tokens: def start_clients ( self , hosts , client ) : num_clients = len ( hosts ) args = client . split ( ' ' ) client_bin = args [ 0 ] client_args = ' ' . join ( args [ 1 : ] ) clients = [ ] for i , client_host in enumerate ( hosts ) : command = ( '%s %s -C %s --numClients %d --clientIndex %d ' '--logFile %s/client%d.%s.log %s' % ( prefix_command , client_bin , self . coordinator_locator , num_clients , i , self . log_subdir , self . next_client_id , client_host [ 0 ] , client_args ) ) self . next_client_id += 1 clients . append ( self . sandbox . rsh ( client_host [ 0 ] , command , bg = True ) ) if self . verbose : print ( 'Client %d started on %s: %s' % ( i , client_host [ 0 ] , command ) ) return clients