com.atlassian.studio.jira.lifecycle
Class OnDemandMigrationScheduler
java.lang.Object
com.atlassian.studio.jira.lifecycle.OnDemandMigrationScheduler
- All Implemented Interfaces:
- com.atlassian.sal.api.lifecycle.LifecycleAware, Runnable, org.springframework.beans.factory.DisposableBean
public class OnDemandMigrationScheduler
- extends Object
- implements com.atlassian.sal.api.lifecycle.LifecycleAware, org.springframework.beans.factory.DisposableBean, Runnable
- Since:
- 118
Method Summary |
void |
destroy()
|
void |
onStart()
|
void |
run()
Used in testing and by the executor to run the migration task - this method should not be called directly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OnDemandMigrationScheduler
public OnDemandMigrationScheduler(OnDemandMigrationTask migrationTask)
onStart
public void onStart()
- Specified by:
onStart
in interface com.atlassian.sal.api.lifecycle.LifecycleAware
run
public void run()
- Used in testing and by the executor to run the migration task - this method should not be called directly.
- Specified by:
run
in interface Runnable
- Throws:
IllegalStateException
- if run without using runWith
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
Copyright © 2002-2012 Atlassian. All Rights Reserved.