Package com.exedosoft.plat.agent

Examples of com.exedosoft.plat.agent.Task


    List<Task> excuteOverList = new ArrayList<Task>();

    Message aMsg = null;
    for (Iterator it = this.getTasks().iterator(); it.hasNext();) {

      Task aTask = (Task) it.next();
      try {
        aMsg = aTask.perform(this.message);
        OutPool.getPool().addMessage(message.getCommandID(), aMsg);
      } catch (Exception e) {
        System.out.println("?惗??丆惓嵼夞?丅丅丅丅丅丅丅");
        for (Iterator<Task> itFail = excuteOverList.iterator(); itFail
            .hasNext();) {
          Task aFailTask = itFail.next();
          OutPool.getPool().addMessage(message.getCommandID(),
              aFailTask.rollBack(this.message));
        }
        break;
      }

      excuteOverList.add(aTask);
View Full Code Here

TOP

Related Classes of com.exedosoft.plat.agent.Task

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.