Package com.uber.cadence.migration
Class MigrationActivitiesImpl
- java.lang.Object
-
- com.uber.cadence.migration.MigrationActivitiesImpl
-
- All Implemented Interfaces:
MigrationActivities
public class MigrationActivitiesImpl extends java.lang.Object implements MigrationActivities
-
-
Constructor Summary
Constructors Constructor Description MigrationActivitiesImpl(WorkflowClient clientInCurrDomain, WorkflowClient clientInNewDomain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelWorkflowInCurrentDomain(RequestCancelWorkflowExecutionRequest request)
Cancels a workflow execution in the current domain.StartWorkflowInNewResponse
startWorkflowInNewDomain(StartWorkflowExecutionRequest request)
Starts a new workflow execution in a new domain.
-
-
-
Constructor Detail
-
MigrationActivitiesImpl
public MigrationActivitiesImpl(WorkflowClient clientInCurrDomain, WorkflowClient clientInNewDomain)
-
-
Method Detail
-
startWorkflowInNewDomain
public StartWorkflowInNewResponse startWorkflowInNewDomain(StartWorkflowExecutionRequest request)
Description copied from interface:MigrationActivities
Starts a new workflow execution in a new domain.- Specified by:
startWorkflowInNewDomain
in interfaceMigrationActivities
- Parameters:
request
- The request to start the workflow in new domain.- Returns:
- A response indicating the status of the operation.
-
cancelWorkflowInCurrentDomain
public void cancelWorkflowInCurrentDomain(RequestCancelWorkflowExecutionRequest request)
Description copied from interface:MigrationActivities
Cancels a workflow execution in the current domain.- Specified by:
cancelWorkflowInCurrentDomain
in interfaceMigrationActivities
- Parameters:
request
- The request to cancel the workflow.
-
-