Skip to content
Snippets Groups Projects
Commit e1a7052a authored by brinn's avatar brinn
Browse files

refactor: move NamingThreadPoolExecutor from common to base

SVN: 10363
parent 5258e69a
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 9 deletions
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package ch.systemsx.cisd.common.concurrent;
package ch.systemsx.cisd.base.namedthread;
import java.util.concurrent.Callable;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package ch.systemsx.cisd.common.concurrent;
package ch.systemsx.cisd.base.namedthread;
import java.util.concurrent.FutureTask;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package ch.systemsx.cisd.common.concurrent;
package ch.systemsx.cisd.base.namedthread;
/**
* A {@link Runnable} with a name.
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package ch.systemsx.cisd.common.concurrent;
package ch.systemsx.cisd.base.namedthread;
import java.util.concurrent.ThreadFactory;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package ch.systemsx.cisd.common.concurrent;
package ch.systemsx.cisd.base.namedthread;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Callable;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package ch.systemsx.cisd.common.concurrent;
package ch.systemsx.cisd.base.namedthread;
/**
* A {@link Thread} that knows its pool name.
......
......@@ -17,5 +17,6 @@
<classpathentry kind="lib" path="/libraries/jmock/objenesis/objenesis-1.0.jar"/>
<classpathentry kind="lib" path="/libraries/jmock/hamcrest/hamcrest-library.jar"/>
<classpathentry kind="lib" path="/libraries/unix"/>
<classpathentry combineaccessrules="false" kind="src" path="/base"/>
<classpathentry kind="output" path="targets/classes"/>
</classpath>
......@@ -28,6 +28,8 @@ import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import ch.systemsx.cisd.base.namedthread.NamedCallable;
import ch.systemsx.cisd.base.namedthread.NamingThreadPoolExecutor;
import ch.systemsx.cisd.common.TimingParameters;
import ch.systemsx.cisd.common.concurrent.ConcurrencyUtilities.ILogSettings;
import ch.systemsx.cisd.common.exceptions.InterruptedExceptionUnchecked;
......
......@@ -32,11 +32,11 @@ import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import ch.systemsx.cisd.base.namedthread.NamedCallable;
import ch.systemsx.cisd.base.namedthread.NamingThreadPoolExecutor;
import ch.systemsx.cisd.common.concurrent.ConcurrencyUtilities;
import ch.systemsx.cisd.common.concurrent.ExecutionResult;
import ch.systemsx.cisd.common.concurrent.ExecutionStatus;
import ch.systemsx.cisd.common.concurrent.NamedCallable;
import ch.systemsx.cisd.common.concurrent.NamingThreadPoolExecutor;
import ch.systemsx.cisd.common.exceptions.InterruptedExceptionUnchecked;
import ch.systemsx.cisd.common.utilities.ITerminable;
......
......@@ -35,6 +35,7 @@ import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import ch.systemsx.cisd.base.namedthread.NamingThreadPoolExecutor;
import ch.systemsx.cisd.common.concurrent.ConcurrencyUtilities.ILogSettings;
import ch.systemsx.cisd.common.exceptions.CheckedExceptionTunnel;
import ch.systemsx.cisd.common.exceptions.InterruptedExceptionUnchecked;
......
......@@ -34,6 +34,10 @@ import java.util.concurrent.TimeUnit;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import ch.systemsx.cisd.base.namedthread.NamedCallable;
import ch.systemsx.cisd.base.namedthread.NamedRunnable;
import ch.systemsx.cisd.base.namedthread.NamingThreadFactory;
import ch.systemsx.cisd.base.namedthread.NamingThreadPoolExecutor;
import ch.systemsx.cisd.common.logging.LogInitializer;
import ch.systemsx.cisd.common.test.Retry10;
......
......@@ -25,12 +25,12 @@ import org.apache.commons.lang.time.DurationFormatUtils;
import org.apache.log4j.Logger;
import ch.rinn.restrictions.Private;
import ch.systemsx.cisd.base.namedthread.NamingThreadPoolExecutor;
import ch.systemsx.cisd.common.Constants;
import ch.systemsx.cisd.common.concurrent.ConcurrencyUtilities;
import ch.systemsx.cisd.common.concurrent.ExecutionResult;
import ch.systemsx.cisd.common.concurrent.IActivityObserver;
import ch.systemsx.cisd.common.concurrent.InactivityMonitor;
import ch.systemsx.cisd.common.concurrent.NamingThreadPoolExecutor;
import ch.systemsx.cisd.common.concurrent.InactivityMonitor.IDescribingActivitySensor;
import ch.systemsx.cisd.common.concurrent.InactivityMonitor.IInactivityObserver;
import ch.systemsx.cisd.common.exceptions.Status;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment