com.atlassian.jira.workflow.migration
Class WorkflowAsynchMigrator

java.lang.Object
  extended by com.atlassian.jira.workflow.migration.WorkflowAsynchMigrator
All Implemented Interfaces:
ProvidesTaskProgress, RequiresTaskInformation<WorkflowMigrationResult>, Callable<WorkflowMigrationResult>

public class WorkflowAsynchMigrator
extends Object
implements Callable<WorkflowMigrationResult>, ProvidesTaskProgress, RequiresTaskInformation<WorkflowMigrationResult>

Class that allows WorkflowMigration to occur on a different thread.

Since:
v3.13

Constructor Summary
WorkflowAsynchMigrator(EnterpriseWorkflowMigrationHelper migrator)
           
 
Method Summary
 WorkflowMigrationResult call()
           
 void setTaskDescriptor(TaskDescriptor<WorkflowMigrationResult> taskDescriptor)
          Called to give the task its TaskDescriptor.
 void setTaskProgressSink(TaskProgressSink taskProgressSink)
          This is called to set in a TaskProgressSink that can be used to send task progress information to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowAsynchMigrator

public WorkflowAsynchMigrator(EnterpriseWorkflowMigrationHelper migrator)
Method Detail

call

public WorkflowMigrationResult call()
                             throws Exception
Specified by:
call in interface Callable<WorkflowMigrationResult>
Throws:
Exception

setTaskProgressSink

public void setTaskProgressSink(TaskProgressSink taskProgressSink)
Description copied from interface: ProvidesTaskProgress
This is called to set in a TaskProgressSink that can be used to send task progress information to

Specified by:
setTaskProgressSink in interface ProvidesTaskProgress
Parameters:
taskProgressSink - a TaskProgressSink that can be used to send task progress information to

setTaskDescriptor

public void setTaskDescriptor(TaskDescriptor<WorkflowMigrationResult> taskDescriptor)
Description copied from interface: RequiresTaskInformation
Called to give the task its TaskDescriptor. This will be called before the tasks starts running. The passed descriptor is live and may change during the life of the task.

Specified by:
setTaskDescriptor in interface RequiresTaskInformation<WorkflowMigrationResult>
Parameters:
taskDescriptor - the task's descriptor. It will not be null. The descriptor is live and may change during the life of the task.


Copyright © 2002-2012 Atlassian. All Rights Reserved.