Package center.task

Examples of center.task.NewTaskInfo


  private boolean nowait;
  private long wait;

  public TaskCenter(center.task.prm.Type tp, String owner, Element e, ATaskInfo parent) throws SysException {
    super(tp, owner);
    tsk = new NewTaskInfo();
    tsk.load(parent, null, e);
    Object x = Strings.getXMLObject(e, "nowait");
    nowait = (x != null);
    if (!nowait)
      wait = Strings.parseIntegerNvl(Strings.getXMLValue(e, "wait"), 30000);
View Full Code Here


      SysException {
    if (root.getTagName().equals("exec")) {
      dbAlias = root.getAttribute("alias");

      Element e = (Element) Strings.getXMLObject(root, "task");
      child = new NewTaskInfo();
      child.load(parent, null, e);
    }
  }
View Full Code Here

        String path = cntx.getPrmString("path_from");
        boolean subdirectories = Strings.parseBooleanNvl(cntx.getPrmString("subdirectories"), true);
        File dir = new File(path);
        File d = occupyFile(dir, prc, cntx, dir, subdirectories);
        if (d != null) {
          NewTaskInfo nti = getChild();
          Context cntx_child = nti.createAndReadyTask(cntx.ta, cntx, cntx.id_subject, null, null);
          if ((cntx_child == null) || (cntx_child.id_task <= 0)) {
            {
              String rn = cntx.getPrmString("path_skip");
              if (rn == null || rn.length() == 0) {
                cntx.log(false, d.getAbsolutePath(), " wasn't renamed");
View Full Code Here

        // if (https) {
        // HttpsServer srv = (HttpsServer)
        // httpExchange.getHttpContext().getServer();
        // SSLContext ssl = srv.getHttpsConfigurator().getSSLContext();
        // }
        NewTaskInfo nti = getChild();
        Context cntx_child = null;
        try {
          String grp_in = cntx.getPrmString("grp_in");
          if (grp_in == null)
            grp_in = "in";
          String grp_out = cntx.getPrmString("grp_out");
          if (grp_out == null)
            grp_out = "out";

          if (!Strings.parseBooleanNvl(
              cntx.getPrmString("save-in-body"), true)) {
            prms.remove("body");
          }
          cntx_child = nti.createAndReadyTask(cntx.ta, cntx,
              cntx.id_subject, grp_in, prms);
          Object res = null;
          if ((cntx_child == null) || (cntx_child.id_task <= 0)) {
            res = cntx_child
                .getPrmByFullName(((grp_out == null) || (grp_out
View Full Code Here

TOP

Related Classes of center.task.NewTaskInfo

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.