Package center.task.api

Examples of center.task.api.ITaskAPI.log()


        .setTmpDir(ai.getTmpDir(), ai.isTmpDeleteOnExit());
    ITaskAPI ta = cntx.ta;
    long id_task = cntx.id_task;
    try {
      if (ta.setProcessing(id_processor, id_task) == id_task) {
        ta.log(id_processor, id_task, "Processing...");
        try {
          cntx.info.calculate(
              TimeState.getInstance(TimeState.Time.before, State.PROCESSING),
              cntx);
          saveParams(Saved.TIME.before);
View Full Code Here


              cntx);
        } catch (Throwable e) {
          e.printStackTrace();
          throw e;
        }
        ta.log(id_processor, id_task,
            "The task was completed with " + st.name() + " status");
        saveParams(Saved.TIME.after);
        ta.setState(id_processor, id_task, st, null);
      } else {
        ta.setTaskError(cntx.id_task, new SysException(
View Full Code Here

      }
    } catch (RuntimeException ex) {
      ex.printStackTrace();
      try {
        State st = State.DONE_ERR;
        ta.log(id_processor, id_task, ex.toString());
        ta.log(id_processor, id_task,
            "The task was completed with " + st.name() + " status");
        ta.setTaskError(id_task, ex);
        saveParams(Saved.TIME.after);
        ta.setDoneErr(id_processor, id_task);
View Full Code Here

    } catch (RuntimeException ex) {
      ex.printStackTrace();
      try {
        State st = State.DONE_ERR;
        ta.log(id_processor, id_task, ex.toString());
        ta.log(id_processor, id_task,
            "The task was completed with " + st.name() + " status");
        ta.setTaskError(id_task, ex);
        saveParams(Saved.TIME.after);
        ta.setDoneErr(id_processor, id_task);
      } catch (SysException ex1) {
View Full Code Here

        ta.setTaskError(id_task, ex);
        saveParams(Saved.TIME.after);
        ta.setDoneErr(id_processor, id_task);
      } catch (SysException ex1) {
        try {
          ta.log(id_processor, id_task, ex1.toString());
        } catch (SysException ex3) {
          System.out.println(ex1);
        }
        try {
          ta.setTaskError(cntx.id_task, ex1);
View Full Code Here

      }
    } catch (SysException ex) {
      ex.printStackTrace();
      try {
        State st = State.DONE_ERR;
        ta.log(id_processor, id_task, ex.toString());
        ta.log(id_processor, id_task,
            "The task was completed with " + st.name() + " status");
        ta.setTaskError(id_task, ex);
        saveParams(Saved.TIME.after);
        ta.setDoneErr(id_processor, id_task);
View Full Code Here

    } catch (SysException ex) {
      ex.printStackTrace();
      try {
        State st = State.DONE_ERR;
        ta.log(id_processor, id_task, ex.toString());
        ta.log(id_processor, id_task,
            "The task was completed with " + st.name() + " status");
        ta.setTaskError(id_task, ex);
        saveParams(Saved.TIME.after);
        ta.setDoneErr(id_processor, id_task);
      } catch (SysException ex1) {
View Full Code Here

        ta.setTaskError(id_task, ex);
        saveParams(Saved.TIME.after);
        ta.setDoneErr(id_processor, id_task);
      } catch (SysException ex1) {
        try {
          ta.log(id_processor, id_task, ex1.toString());
        } catch (SysException ex3) {
          System.out.println(ex1);
        }
      }
    } catch (TaskException ex) {
View Full Code Here

        }
      }
    } catch (TaskException ex) {
      State st = ex.getState();
      try {
        ta.log(id_processor, id_task, ex.toString());
        ta.log(id_processor, id_task,
            "The task was completed with " + st.name() + " status");
        ta.setTaskError(id_task, ex);
      } catch (SysException ex1) {
        try {
View Full Code Here

      }
    } catch (TaskException ex) {
      State st = ex.getState();
      try {
        ta.log(id_processor, id_task, ex.toString());
        ta.log(id_processor, id_task,
            "The task was completed with " + st.name() + " status");
        ta.setTaskError(id_task, ex);
      } catch (SysException ex1) {
        try {
          ta.log(id_processor, id_task, ex1.toString());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.