Package sos.spooler

Examples of sos.spooler.Spooler


    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());
View Full Code Here


     
      strMessage = String.format("check %1$s: %2$s", strJobName, myReplaceAll(strMessage,"\\[?JOB_NAME\\]?", strJobName));
      Date objDateStartTime = Options().start_time.getDateObject();
     
      if(flgRunAsSchedulerAPIJob) {
        Spooler objSpooler = (Spooler) objSp;
        Mail objMail = objSpooler.log().mail();
        if(isNotEmpty(strMailTo)) {
          objMail.set_to(strMailTo);
        }
        if(isNotEmpty(strMailCc)) {
          objMail.set_cc(strMailCc);
View Full Code Here

TOP

Related Classes of sos.spooler.Spooler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.