accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/3] accumulo git commit: ACCUMULO-1292 Remove use of guava class to avoid needing to add a new dependency
Date Fri, 23 Jan 2015 19:38:33 GMT
ACCUMULO-1292 Remove use of guava class to avoid needing to add a new dependency


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/9f2fcf4a
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/9f2fcf4a
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/9f2fcf4a

Branch: refs/heads/master
Commit: 9f2fcf4aa3072a6eb1cc714506afc2dd84fd99d8
Parents: 40b41f2
Author: Josh Elser <elserj@apache.org>
Authored: Fri Jan 23 14:19:26 2015 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Fri Jan 23 14:19:26 2015 -0500

----------------------------------------------------------------------
 .../vfs/AccumuloReloadingVFSClassLoader.java           | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/9f2fcf4a/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloReloadingVFSClassLoader.java
----------------------------------------------------------------------
diff --git a/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloReloadingVFSClassLoader.java
b/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloReloadingVFSClassLoader.java
index 05eaae1..b84953e 100644
--- a/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloReloadingVFSClassLoader.java
+++ b/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloReloadingVFSClassLoader.java
@@ -35,8 +35,6 @@ import org.apache.commons.vfs2.impl.DefaultFileMonitor;
 import org.apache.commons.vfs2.impl.VFSClassLoader;
 import org.apache.log4j.Logger;
 
-import com.google.common.util.concurrent.ThreadFactoryBuilder;
-
 /**
  * Classloader that delegates operations to a VFSClassLoader object. This class also listens
for changes in any of the files/directories that are in the
  * classpath and will recreate the delegate object if there is any change in the classpath.
@@ -58,7 +56,16 @@ public class AccumuloReloadingVFSClassLoader implements FileListener, ReloadingC
   private final ThreadPoolExecutor executor;
   {
     BlockingQueue<Runnable> queue = new ArrayBlockingQueue<Runnable>(2);
-    ThreadFactory factory = new ThreadFactoryBuilder().setDaemon(true).build();
+    ThreadFactory factory = new ThreadFactory() {
+
+      @Override
+      public Thread newThread(Runnable r) {
+        Thread t = new Thread(r);
+        t.setDaemon(true);
+        return t;
+      }
+
+    };
     executor = new ThreadPoolExecutor(1, 1, 1, SECONDS, queue, factory);
   }
 


Mime
View raw message