From 978b157dde051177a0fa44aec966a85006132c91 Mon Sep 17 00:00:00 2001 From: liningrui Date: Tue, 2 Feb 2021 14:02:56 +0800 Subject: [PATCH] move to concurrent package --- .../PausableScheduledThreadPool.java | 2 +- src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java | 2 +- src/test/java/com/baidu/hugegraph/unit/UnitTestSuite.java | 3 +-- .../PausableScheduledThreadPoolTest.java | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) rename src/main/java/com/baidu/hugegraph/{threadpool => concurrent}/PausableScheduledThreadPool.java (98%) rename src/test/java/com/baidu/hugegraph/unit/{threadpool => concurrent}/PausableScheduledThreadPoolTest.java (96%) diff --git a/src/main/java/com/baidu/hugegraph/threadpool/PausableScheduledThreadPool.java b/src/main/java/com/baidu/hugegraph/concurrent/PausableScheduledThreadPool.java similarity index 98% rename from src/main/java/com/baidu/hugegraph/threadpool/PausableScheduledThreadPool.java rename to src/main/java/com/baidu/hugegraph/concurrent/PausableScheduledThreadPool.java index f3d88905..fb5a5f13 100644 --- a/src/main/java/com/baidu/hugegraph/threadpool/PausableScheduledThreadPool.java +++ b/src/main/java/com/baidu/hugegraph/concurrent/PausableScheduledThreadPool.java @@ -17,7 +17,7 @@ * under the License. */ -package com.baidu.hugegraph.threadpool; +package com.baidu.hugegraph.concurrent; import java.util.List; import java.util.concurrent.ScheduledThreadPoolExecutor; diff --git a/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java b/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java index 24b21133..087f8d00 100644 --- a/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java +++ b/src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java @@ -26,7 +26,7 @@ import org.apache.commons.lang3.concurrent.BasicThreadFactory; -import com.baidu.hugegraph.threadpool.PausableScheduledThreadPool; +import com.baidu.hugegraph.concurrent.PausableScheduledThreadPool; public final class ExecutorUtil { diff --git a/src/test/java/com/baidu/hugegraph/unit/UnitTestSuite.java b/src/test/java/com/baidu/hugegraph/unit/UnitTestSuite.java index 8cdf7cb1..8b84932f 100644 --- a/src/test/java/com/baidu/hugegraph/unit/UnitTestSuite.java +++ b/src/test/java/com/baidu/hugegraph/unit/UnitTestSuite.java @@ -49,7 +49,7 @@ import com.baidu.hugegraph.unit.perf.PerfUtilTest; import com.baidu.hugegraph.unit.rest.RestClientTest; import com.baidu.hugegraph.unit.rest.RestResultTest; -import com.baidu.hugegraph.unit.threadpool.PausableScheduledThreadPoolTest; +import com.baidu.hugegraph.unit.concurrent.PausableScheduledThreadPoolTest; import com.baidu.hugegraph.unit.util.BytesTest; import com.baidu.hugegraph.unit.util.CollectionUtilTest; import com.baidu.hugegraph.unit.util.DateUtilTest; @@ -71,7 +71,6 @@ AtomicLockTest.class, KeyLockTest.class, RowLockTest.class, - PausableScheduledThreadPoolTest.class, HugeConfigTest.class, diff --git a/src/test/java/com/baidu/hugegraph/unit/threadpool/PausableScheduledThreadPoolTest.java b/src/test/java/com/baidu/hugegraph/unit/concurrent/PausableScheduledThreadPoolTest.java similarity index 96% rename from src/test/java/com/baidu/hugegraph/unit/threadpool/PausableScheduledThreadPoolTest.java rename to src/test/java/com/baidu/hugegraph/unit/concurrent/PausableScheduledThreadPoolTest.java index 53d29844..9ae51f7a 100644 --- a/src/test/java/com/baidu/hugegraph/unit/threadpool/PausableScheduledThreadPoolTest.java +++ b/src/test/java/com/baidu/hugegraph/unit/concurrent/PausableScheduledThreadPoolTest.java @@ -17,7 +17,7 @@ * under the License. */ -package com.baidu.hugegraph.unit.threadpool; +package com.baidu.hugegraph.unit.concurrent; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; @@ -25,7 +25,7 @@ import org.junit.Assert; import org.junit.Test; -import com.baidu.hugegraph.threadpool.PausableScheduledThreadPool; +import com.baidu.hugegraph.concurrent.PausableScheduledThreadPool; import com.baidu.hugegraph.util.ExecutorUtil; public class PausableScheduledThreadPoolTest {