updateLastRun(installationDefinitionFile);
}
private void createOrder(JSinstallation installation) throws Exception {
Spooler spooler = (Spooler) jsBatchInstaller.getJSCommands().getSpoolerObject();
File installationFile = installation.getInstallationFile(localDir);
installation.doReplacing();
logger.info(String.format("Start to create order for scheduler id %1$s", installation.getSchedulerId()));
JSXMLInstallationFile jsXMLInstallationFile = new JSXMLInstallationFile();
jsXMLInstallationFile.setValues(installation);
jsXMLInstallationFile.writeFile(installationFile);
logger.info("scheduler_id:" + installation.getSchedulerId());
logger.info("host:" + installation.getHost());
logger.info("install_path:" + installation.getInstallPath());
logger.info("licence:" + installation.getLicence());
logger.info("allowed_host:" + installation.getSchedulerAllowedHost());
logger.info("scheduler_port:" + installation.getSchedulerPort());
logger.info("userPathPanelElement:" + installation.getUserPathPanelElement());
logger.info("----------------------------------------------");
if (spooler == null) {
logger.info("Creation of order is skipped because spooler object is NULL");
return;
}
//spooler_job.set_state_text("Start Installation of " + installation.getHost() + ":" + installation.getServicePort());
order = spooler.create_order();
Job_chain jobchain = spooler.job_chain(installationJobChain);
order.set_id(installation.getHost() + ":" + installation.getSchedulerPort());
setParam("installation_file", installationFile.getName());
setParam("ftp_user", installation.getFtp().getUser());