net.kwfgrid.gwes
Class FaultToleranceHandler

java.lang.Object
  extended by net.kwfgrid.gwes.FaultToleranceHandler

public class FaultToleranceHandler
extends Object

Version:
$Id: FaultToleranceHandler.java 1532 2011-06-23 15:57:53Z hoheisel $
Author:
Andreas Hoheisel (www.andreas-hoheisel.de)

Constructor Summary
FaultToleranceHandler()
           
 
Method Summary
static Activity.Status initiateFaultToleranceOrTerminate(Activity activity)
          If this is not the last attempt, set the status to Status.FAILED and initiate fault tolerance, otherwise set Status.TERMINATED.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultToleranceHandler

public FaultToleranceHandler()
Method Detail

initiateFaultToleranceOrTerminate

public static Activity.Status initiateFaultToleranceOrTerminate(Activity activity)
If this is not the last attempt, set the status to Status.FAILED and initiate fault tolerance, otherwise set Status.TERMINATED. As side effect, this method decreases the attempts variable and stores it back to as property to the input tokens and removes the failed operation candidate from the transition's operation.



Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.