Author: shawkins
Date: 2009-09-08 15:58:25 -0400 (Tue, 08 Sep 2009)
New Revision: 1311
Modified:
trunk/runtime/src/main/java/org/teiid/transport/SocketListener.java
Log:
TEIID-821 marking netty socket threads as daemon
Modified: trunk/runtime/src/main/java/org/teiid/transport/SocketListener.java
===================================================================
--- trunk/runtime/src/main/java/org/teiid/transport/SocketListener.java 2009-09-08
19:08:14 UTC (rev 1310)
+++ trunk/runtime/src/main/java/org/teiid/transport/SocketListener.java 2009-09-08
19:58:25 UTC (rev 1311)
@@ -43,6 +43,7 @@
import com.metamatrix.common.util.ApplicationInfo;
import com.metamatrix.common.util.LogConstants;
import com.metamatrix.core.log.MessageLevel;
+import com.metamatrix.core.util.NamedThreadFactory;
import com.metamatrix.platform.security.api.service.SessionServiceInterface;
import com.metamatrix.platform.vm.controller.SocketListenerStats;
@@ -78,7 +79,7 @@
this.server = server;
this.workerPool = WorkerPoolFactory.newWorkerPool("SocketWorker",
maxWorkers); //$NON-NLS-1$
- this.nettyPool = Executors.newCachedThreadPool();
+ this.nettyPool = Executors.newCachedThreadPool(new
NamedThreadFactory("NIO")); //$NON-NLS-1$
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_SERVER,
MessageLevel.DETAIL)) {
LogManager.logDetail(LogConstants.CTX_SERVER, "server = " +
bindAddress + "binding to port:" + port); //$NON-NLS-1$ //$NON-NLS-2$
}
Show replies by date