public final class WorkflowShadower
extends java.lang.Object
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
<R> void |
addWorkflowImplementationFactory(java.lang.Class<R> workflowInterface,
Functions.Func<R> factory) |
<R> void |
addWorkflowImplementationFactory(WorkflowImplementationOptions options,
java.lang.Class<R> workflowInterface,
Functions.Func<R> factory) |
void |
registerWorkflowImplementationTypes(java.lang.Class<?>... workflowImplementationClasses) |
void |
registerWorkflowImplementationTypes(WorkflowImplementationOptions options,
java.lang.Class<?>... workflowImplementationClasses) |
void |
run() |
public WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList)
service
- is the target service to fetch workflow history.options
- is the shadowing options.taskList
- is the task list used in the workflows.public WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList, com.uber.m3.tally.Scope metricsScope, TestEnvironmentOptions testOptions)
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.public WorkflowShadower(IWorkflowService service, ShadowingOptions options, java.lang.String taskList, com.uber.m3.tally.Scope metricsScope)
public WorkflowShadower(ShadowingOptions options, ScanWorkflowActivity scanWorkflow, ReplayWorkflowActivity replayWorkflow)
public void run() throws java.lang.Throwable
java.lang.Throwable
public void registerWorkflowImplementationTypes(java.lang.Class<?>... workflowImplementationClasses)
public void registerWorkflowImplementationTypes(WorkflowImplementationOptions options, java.lang.Class<?>... workflowImplementationClasses)
public <R> void addWorkflowImplementationFactory(WorkflowImplementationOptions options, java.lang.Class<R> workflowInterface, Functions.Func<R> factory)
public <R> void addWorkflowImplementationFactory(java.lang.Class<R> workflowInterface, Functions.Func<R> factory)