Skip to content

Commit

Permalink
move to concurrent package
Browse files Browse the repository at this point in the history
  • Loading branch information
Linary committed Feb 2, 2021
1 parent 638466a commit 55864c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/baidu/hugegraph/util/ExecutorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
3 changes: 1 addition & 2 deletions src/test/java/com/baidu/hugegraph/unit/UnitTestSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -71,7 +71,6 @@
AtomicLockTest.class,
KeyLockTest.class,
RowLockTest.class,

PausableScheduledThreadPoolTest.class,

HugeConfigTest.class,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
/*
* 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;

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 {
Expand Down

0 comments on commit 55864c3

Please sign in to comment.