Issue 537: changed to bounded thread pool executor

This commit is contained in:
Adrian Cole 2011-04-23 11:45:10 -07:00
parent 4bcc6a753b
commit 4e114e9b2b
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.jclouds.concurrent.DynamicExecutors;
import org.jclouds.date.DateService;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
@ -44,7 +44,7 @@ public abstract class PerformanceTest {
@BeforeTest
public void setupExecutorService() {
exec = Executors.newCachedThreadPool();
exec = DynamicExecutors.newScalingThreadPool(1, THREAD_COUNT, 1000);
}
@AfterTest