Package cartago.events

Examples of cartago.events.ActionSucceededEvent


 
  //
 
  public void notifyCartagoEvent(CartagoEvent ev){
    if (ev instanceof ActionSucceededEvent){
      ActionSucceededEvent evt = (ActionSucceededEvent)ev;
      PendingOp o = pendingOps.get(evt.getActionId());
      if (o != null){
        o.notifyOpSuccess();
      }
    } else if (ev instanceof ActionFailedEvent){
      ActionFailedEvent evt = (ActionFailedEvent)ev;
      PendingOp o = pendingOps.get(evt.getActionId());
      if (o != null){
        o.notifyOpFailure(evt.getFailureMsg(), evt.getFailureDescr());
      }
    }
  }
View Full Code Here

TOP

Related Classes of cartago.events.ActionSucceededEvent

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.