com.atlassian.jira.workflow.migration
Class WorkflowAsynchMigrator

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

public class WorkflowAsynchMigrator
extends java.lang.Object
implements java.util.concurrent.Callable<WorkflowMigrationResult>, ProvidesTaskProgress, RequiresTaskInformation<WorkflowMigrationResult>

Class that allows WorkflowMigration to occur on a different thread.

Since:
v3.13

Constructor Summary
WorkflowAsynchMigrator(AbstractWorkflowMigrationHelper 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(AbstractWorkflowMigrationHelper migrator)
Method Detail

call

public WorkflowMigrationResult call()
                             throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<WorkflowMigrationResult>
Throws:
java.lang.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-2010 Atlassian. All Rights Reserved.