mirror of https://github.com/apache/jclouds.git
Issue 537: changed to bounded thread pool executor
This commit is contained in:
parent
4bcc6a753b
commit
4e114e9b2b
|
@ -25,8 +25,8 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.ExecutorCompletionService;
|
import java.util.concurrent.ExecutorCompletionService;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
|
||||||
|
|
||||||
|
import org.jclouds.concurrent.DynamicExecutors;
|
||||||
import org.jclouds.date.DateService;
|
import org.jclouds.date.DateService;
|
||||||
import org.testng.annotations.AfterTest;
|
import org.testng.annotations.AfterTest;
|
||||||
import org.testng.annotations.BeforeTest;
|
import org.testng.annotations.BeforeTest;
|
||||||
|
@ -44,7 +44,7 @@ public abstract class PerformanceTest {
|
||||||
|
|
||||||
@BeforeTest
|
@BeforeTest
|
||||||
public void setupExecutorService() {
|
public void setupExecutorService() {
|
||||||
exec = Executors.newCachedThreadPool();
|
exec = DynamicExecutors.newScalingThreadPool(1, THREAD_COUNT, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterTest
|
@AfterTest
|
||||||
|
|
Loading…
Reference in New Issue