Package com.uber.cadence.testing
Class WorkflowShadower
- java.lang.Object
-
- com.uber.cadence.testing.WorkflowShadower
-
public final class WorkflowShadower extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList)
WorkflowShadower fetches the workflow history from remote and run replay test locally.WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList, com.uber.m3.tally.Scope metricsScope)
WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList, com.uber.m3.tally.Scope metricsScope, TestEnvironmentOptions testOptions)
WorkflowShadower fetches the workflow history from remote and run replay test locally.WorkflowShadower(ShadowingOptions options, ScanWorkflowActivity scanWorkflow, ReplayWorkflowActivity replayWorkflow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> void
addWorkflowImplementationFactory(WorkflowImplementationOptions options, java.lang.Class<R> workflowInterface, Functions.Func<R> factory)
<R> void
addWorkflowImplementationFactory(java.lang.Class<R> workflowInterface, Functions.Func<R> factory)
void
registerWorkflowImplementationTypes(WorkflowImplementationOptions options, java.lang.Class<?>... workflowImplementationClasses)
void
registerWorkflowImplementationTypes(java.lang.Class<?>... workflowImplementationClasses)
void
run()
-
-
-
Constructor Detail
-
WorkflowShadower
public WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList)
WorkflowShadower fetches the workflow history from remote and run replay test locally.- Parameters:
service
- is the target service to fetch workflow history.options
- is the shadowing options.taskList
- is the task list used in the workflows.
-
WorkflowShadower
public WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList, com.uber.m3.tally.Scope metricsScope, TestEnvironmentOptions testOptions)
WorkflowShadower fetches the workflow history from remote and run replay test locally.- Parameters:
service
- is the target service to fetch workflow history.options
- is the shadowing options.taskList
- is the task list used in the workflows.metricsScope
- uses to emit replay metrics.testOptions
- uses to set customized data converter, interceptor and context propagator.
-
WorkflowShadower
public WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList, com.uber.m3.tally.Scope metricsScope)
-
WorkflowShadower
public WorkflowShadower(ShadowingOptions options, ScanWorkflowActivity scanWorkflow, ReplayWorkflowActivity replayWorkflow)
-
-
Method Detail
-
run
public void run() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
registerWorkflowImplementationTypes
public void registerWorkflowImplementationTypes(java.lang.Class<?>... workflowImplementationClasses)
-
registerWorkflowImplementationTypes
public void registerWorkflowImplementationTypes(WorkflowImplementationOptions options, java.lang.Class<?>... workflowImplementationClasses)
-
addWorkflowImplementationFactory
public <R> void addWorkflowImplementationFactory(WorkflowImplementationOptions options, java.lang.Class<R> workflowInterface, Functions.Func<R> factory)
-
addWorkflowImplementationFactory
public <R> void addWorkflowImplementationFactory(java.lang.Class<R> workflowInterface, Functions.Func<R> factory)
-
-