From 8cf5eb61f48468966e29431ee57acc351a15c94b Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Tue, 29 Oct 2013 22:34:36 +0000 Subject: [PATCH] Remove surplus code --- server/compbio/listeners/ContextListener.java | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/server/compbio/listeners/ContextListener.java b/server/compbio/listeners/ContextListener.java index 3cbf723..ec72af9 100644 --- a/server/compbio/listeners/ContextListener.java +++ b/server/compbio/listeners/ContextListener.java @@ -17,7 +17,6 @@ import compbio.cassandra.CassandraCreate; @WebListener public class ContextListener implements ServletContextListener { private ScheduledExecutorService webjob_scheduler; - //private ScheduledExecutorService localjob_scheduler; CassandraCreate cc = new CassandraCreate(); /** @@ -31,20 +30,10 @@ public class ContextListener implements ServletContextListener { webjob_scheduler.scheduleAtFixedRate(new Runnable() { @Override public void run() { - cc.Parsing("http"); - //cc.Parsing("file"); + cc.Parsing("test"); } - }, 0, 20, TimeUnit.SECONDS); -/* - localjob_scheduler = Executors.newSingleThreadScheduledExecutor(); - localjob_scheduler.scheduleAtFixedRate(new Runnable() { - @Override - public void run() { - cc.Parsing("http"); - //cc.Parsing("file"); - } - }, 0, 20000, TimeUnit.SECONDS); -*/ + }, 0, 60, TimeUnit.SECONDS); + } /** @@ -54,7 +43,6 @@ public class ContextListener implements ServletContextListener { cc.Closing(); System.out.println("Shut down ProteoCache......"); webjob_scheduler.shutdownNow(); - //localjob_scheduler.shutdownNow(); } } -- 1.7.10.2