diff --git a/src/main/java/com/baidu/hugegraph/threadpool/PausableScheduledThreadPool.java b/src/main/java/com/baidu/hugegraph/concurrent/PausableScheduledThreadPool.java similarity index 65% rename from src/main/java/com/baidu/hugegraph/threadpool/PausableScheduledThreadPool.java rename to src/main/java/com/baidu/hugegraph/concurrent/PausableScheduledThreadPool.java index f3d88905..4a1bcbf3 100644 --- a/src/main/java/com/baidu/hugegraph/threadpool/PausableScheduledThreadPool.java +++ b/src/main/java/com/baidu/hugegraph/concurrent/PausableScheduledThreadPool.java @@ -1,23 +1,8 @@ /* - * Copyright 2017 HugeGraph Authors - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to You under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. + * Copyright (C) 2021 Baidu, Inc. All Rights Reserved. */ -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 68% 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..c253ba19 100644 --- a/src/test/java/com/baidu/hugegraph/unit/threadpool/PausableScheduledThreadPoolTest.java +++ b/src/test/java/com/baidu/hugegraph/unit/concurrent/PausableScheduledThreadPoolTest.java @@ -1,23 +1,8 @@ /* - * Copyright 2017 HugeGraph Authors - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to You under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. + * Copyright (C) 2021 Baidu, Inc. All Rights Reserved. */ -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 +10,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 {