prepareToCreateNodes();
Collection values = nodeToNodeInfo.values(); for (Iterator i = values.iterator(); i.hasNext(); ) { NodeInfo ni = (NodeInfo)i.next(); prepareToCreateNode(ni.appServer, ni.nodeName, ni.hostName, ni.properties, ni.args); }
  private void runTrial() {    if (log.isDebugEnabled()) {      log.debug("runTrial about to setTrialValues");    }    setTrialValues();    runStart = new Date();    nodeCreationInfoList = new ArrayList();    prepareToCreateNodes();    stopNodeCreation = false;    startTimers();    if (log.isDebugEnabled()) {      log.debug("runTrial about to start createNodes thread");    }    nodeCreator = new Thread("CreateNodes") {      public void run() {        createNodes();        starting = false;        // reset controls if no nodes started successfully        boolean reset = false;        synchronized (runningNodesLock) {          if (runningNodes.isEmpty())             reset = true;        } // end synchronized        if (reset) {          SwingUtilities.invokeLater(new Runnable() {              public void run() {                runButton.setSelected(false);                runButton.setEnabled(true);                unsetTrialValues();                currentTrial--;              }            });        } else {          // create and display iconified GLSClient          // if its servlet exists	  final String glsAgent = findServlet();          if(glsAgent != null) {            SwingUtilities.invokeLater(new Runnable() {                public void run() {                  JInternalFrame jif =                     new JInternalFrame("GLS", true, false, true, true);                  glsClient = new GLSClient(getOPlanAgentURL(glsAgent));                  jif.getContentPane().add(glsClient);                  jif.setSize(350, 350);                  jif.setLocation(0, 0);                  jif.setVisible(true);                  desktop.add(jif, JLayeredPane.DEFAULT_LAYER);                  try {                    jif.setIcon(true);                  } catch (PropertyVetoException e) {                  }                }              });          }	}      }    };    starting = true;    if (log.isDebugEnabled()) {      log.debug("runTrial about to create Nodes");    }    try {      nodeCreator.start();    } catch (RuntimeException re) {      if(log.isErrorEnabled()) {        log.error("Exception", re);      }    }  }