com.amazonaws.services.simpleworkflow.flow
Class WorkflowReplayer<T>

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.flow.WorkflowReplayer<T>

public class WorkflowReplayer<T>
extends Object


Constructor Summary
WorkflowReplayer(AmazonSimpleWorkflow service, String domain, WorkflowExecution workflowExecution, Class<T> workflowImplementationType)
           
WorkflowReplayer(AmazonSimpleWorkflow service, String domain, WorkflowExecution workflowExecution, T workflowImplementation)
           
WorkflowReplayer(AmazonSimpleWorkflow service, String domain, WorkflowExecution workflowExecution, WorkflowDefinitionFactoryFactory workflowDefinitionFactoryFactory)
           
WorkflowReplayer(Iterable<HistoryEvent> history, WorkflowExecution workflowExecution, Class<T> workflowImplementationType)
           
WorkflowReplayer(Iterable<HistoryEvent> history, WorkflowExecution workflowExecution, T workflowImplementation)
           
WorkflowReplayer(Iterable<HistoryEvent> history, WorkflowExecution workflowExecution, WorkflowDefinitionFactoryFactory workflowDefinitionFactoryFactory)
           
WorkflowReplayer(Iterator<DecisionTask> decisionTasks, Class<T> workflowImplementationType)
           
WorkflowReplayer(Iterator<DecisionTask> decisionTasks, T workflowImplementation)
           
WorkflowReplayer(Iterator<DecisionTask> decisionTasks, WorkflowDefinitionFactoryFactory workflowDefinitionFactoryFactory)
           
 
Method Summary
 List<AsyncTaskInfo> getAsynchronousThreadDump()
           
 String getAsynchronousThreadDumpAsString()
           
 int getReplayUpToEventId()
           
 T loadWorkflow()
           
 RespondDecisionTaskCompletedRequest replay()
           
 void setReplayUpToEventId(int replayUpToEventId)
          The replay stops at the event with the given eventId.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowReplayer

public WorkflowReplayer(AmazonSimpleWorkflow service,
                        String domain,
                        WorkflowExecution workflowExecution,
                        Class<T> workflowImplementationType)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(AmazonSimpleWorkflow service,
                        String domain,
                        WorkflowExecution workflowExecution,
                        T workflowImplementation)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(AmazonSimpleWorkflow service,
                        String domain,
                        WorkflowExecution workflowExecution,
                        WorkflowDefinitionFactoryFactory workflowDefinitionFactoryFactory)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(Iterable<HistoryEvent> history,
                        WorkflowExecution workflowExecution,
                        Class<T> workflowImplementationType)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(Iterable<HistoryEvent> history,
                        WorkflowExecution workflowExecution,
                        T workflowImplementation)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(Iterable<HistoryEvent> history,
                        WorkflowExecution workflowExecution,
                        WorkflowDefinitionFactoryFactory workflowDefinitionFactoryFactory)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(Iterator<DecisionTask> decisionTasks,
                        Class<T> workflowImplementationType)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(Iterator<DecisionTask> decisionTasks,
                        T workflowImplementation)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

WorkflowReplayer

public WorkflowReplayer(Iterator<DecisionTask> decisionTasks,
                        WorkflowDefinitionFactoryFactory workflowDefinitionFactoryFactory)
                 throws InstantiationException,
                        IllegalAccessException
Throws:
InstantiationException
IllegalAccessException
Method Detail

getReplayUpToEventId

public int getReplayUpToEventId()

setReplayUpToEventId

public void setReplayUpToEventId(int replayUpToEventId)
The replay stops at the event with the given eventId. Default is 0.

Parameters:
replayUpToEventId - 0 means the whole history.

replay

public RespondDecisionTaskCompletedRequest replay()
                                           throws Exception
Throws:
Exception

loadWorkflow

public T loadWorkflow()
               throws Exception
Throws:
Exception

getAsynchronousThreadDump

public List<AsyncTaskInfo> getAsynchronousThreadDump()
                                              throws Exception
Throws:
Exception

getAsynchronousThreadDumpAsString

public String getAsynchronousThreadDumpAsString()
                                         throws Exception
Throws:
Exception


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.