Class MultiThreadedUpgradeRunner
- java.lang.Object
-
- com.atlassian.bamboo.upgrade.tasks.MultiThreadedUpgradeRunner
-
public class MultiThreadedUpgradeRunner extends Object
A executor wrapper that allows for multi threaded upgrade tasks to be run easier
-
-
Constructor Summary
Constructors Constructor Description MultiThreadedUpgradeRunner(int maxThreads)MultiThreadedUpgradeRunner(int numberOfThreads, int queueCapacity)MultiThreadedUpgradeRunner(@NotNull com.atlassian.config.db.HibernateConfig hibernateConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckException()intgetActiveThreads()voidsubmit(@NotNull Callable<Void> callable)voidwaitForTermination()
-
-
-
Constructor Detail
-
MultiThreadedUpgradeRunner
public MultiThreadedUpgradeRunner(int maxThreads)
-
MultiThreadedUpgradeRunner
public MultiThreadedUpgradeRunner(int numberOfThreads, int queueCapacity)
-
MultiThreadedUpgradeRunner
public MultiThreadedUpgradeRunner(@NotNull @NotNull com.atlassian.config.db.HibernateConfig hibernateConfig)
-
-
Method Detail
-
submit
public void submit(@NotNull @NotNull Callable<Void> callable) throws InterruptedException, UpgradeException- Throws:
InterruptedExceptionUpgradeException
-
waitForTermination
public void waitForTermination() throws InterruptedException, UpgradeException- Throws:
InterruptedExceptionUpgradeException
-
checkException
public void checkException() throws UpgradeException- Throws:
UpgradeException
-
getActiveThreads
public int getActiveThreads()
-
-