Package com.sos.scheduler.model

Examples of com.sos.scheduler.model.SchedulerObjectFactory


     * "custom" Felder sind
     *
     * ? alternativ Metadaten der Tabelle lesen (Spalten) und mit den Auftragsparameter vergleichen
     */

    SchedulerObjectFactory objFactory = objParent.objFactory;
    if (objFactory == null) {
      objFactory = new SchedulerObjectFactory(objOptions.scheduler_host.Value(), objOptions.scheduler_port.value());
      objFactory.initMarshaller(Spooler.class);
      objParent.objFactory = objFactory;
      objFactory.Options().TransferMethod.Value(objOptions.Scheduler_Transfer_Method.Value());
      // objFactory.Options().TransferMethod.Value(enuJSTransferModes.tcp.description);
      objFactory.Options().PortNumber.Value(objOptions.scheduler_port.Value());
      objFactory.Options().ServerName.Value(objOptions.scheduler_host.Value());
    }
    JSCmdAddOrder objOrder = objFactory.createAddOrder();
    objOrder.setJobChain(objOptions.scheduler_job_chain.Value() /* "scheduler_sosftp_history" */);
    objOrder.setTitle("Test for UDP communication method");
    Params objParams = objFactory.setParams(objSchedulerOrderParameterSet);
    objOrder.setParams(objParams);
    logger.debug(objOrder.toXMLString());
    objOrder.run();
  } // private void sendTransferHistory
View Full Code Here


        if(isNotEmpty(strMessage)) {
          objMail.set_subject(strMessage);
        }
      }
     
      SchedulerObjectFactory objJSFactory = new SchedulerObjectFactory();
      objJSFactory.initMarshaller(ShowHistory.class);
      JSCmdShowHistory objShowHistory = objJSFactory.createShowHistory();
      objShowHistory.setJob(strJobName);
      objShowHistory.setPrev(BigInteger.valueOf(1));
      Answer objAnswer = null;
     
      if(flgRunAsSchedulerAPIJob) {
        logger.debug("... runs as Job Scheduler API job");
        String strShowHistoryXML = objShowHistory.toXMLString();
        String answerXML = objJSCommands.executeXML(strShowHistoryXML);
        objAnswer = objShowHistory.getAnswer(answerXML);
      }
      else {
        logger.debug("... runs as command line job");
        objJSFactory.Options().ServerName.Value(Options().SchedulerHostName.Value());
        objJSFactory.Options().PortNumber.value(Options().SchedulerPort.value());
        objShowHistory.run();
        objAnswer = objShowHistory.getAnswer();
      }
     
      if(objAnswer != null) {
View Full Code Here

TOP

Related Classes of com.sos.scheduler.model.SchedulerObjectFactory

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.