Package de.sub.goobi.helper.tasks

Examples of de.sub.goobi.helper.tasks.LongRunningTask



  public void addNewMasterTask() {
    Prozess p = new Prozess();
    p.setTitel("hallo Titel " + System.currentTimeMillis());
    this.task = new LongRunningTask();
    this.task.initialize(p);
    LongRunningTaskManager.getInstance().addTask(this.task);
  }
View Full Code Here


    if (this.task.getStatusProgress() == 0) {
      LongRunningTaskManager.getInstance().executeTask(this.task);
    } else {
      /* Thread lief schon und wurde abgebrochen */
      try {
        LongRunningTask lrt = this.task.getClass().newInstance();
        lrt.initialize(this.task.getProzess());
        LongRunningTaskManager.getInstance().replaceTask(this.task, lrt);
        LongRunningTaskManager.getInstance().executeTask(lrt);
      } catch (InstantiationException e) {
        logger.error(e);
      } catch (IllegalAccessException e) {
View Full Code Here

TOP

Related Classes of de.sub.goobi.helper.tasks.LongRunningTask

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.