Switichin between different Jpred installations
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Wed, 29 Jan 2014 08:07:37 +0000 (08:07 +0000)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Wed, 29 Jan 2014 08:07:37 +0000 (08:07 +0000)
conf/Proteocache.properties
server/compbio/listeners/ContextListener.java

index 24307b7..2b2a2fd 100644 (file)
@@ -1,7 +1,8 @@
 #################################################################################
 # Cassandra host or IP
 # test server is 10.0.115.190
-cassandra.host=localhost
+#cassandra.host=localhost
+cassandra.host=Main-laptop2.dyn.lifesci.dundee.ac.uk
 #cassandra.host=gjb-www-1.cluster.lifesci.dundee.ac.uk
 #cassandra.host=c6100-1.cluster.lifesci.dundee.ac.uk
 
@@ -14,6 +15,7 @@ cassandra.version.update=false
 cassandra.jpred.web.update=true
 cassandra.jpred.web.inidelay=0
 cassandra.jpred.web.updaterate=30
+#cassandra.jpred.web.prefix=http://gjb-www-1.cluster.lifesci.dundee.ac.uk:3209/results
 
 # update time period (in days)
 # by defauls for 100 past days
index f673e30..f862a2f 100644 (file)
@@ -91,8 +91,13 @@ public class ContextListener implements ServletContextListener {
 
                if (READ_WEB_JPRED) {
                        // get data from real Jpred production server
-                       final String datasrc = "http://www.compbio.dundee.ac.uk/www-jpred/results/usage-new/alljobs.dat";
-                       final String prefix = "http://www.compbio.dundee.ac.uk/www-jpred/results";
+                       String theprefix = ph.getProperty("cassandra.jpred.web.prefix");
+                       if (null == theprefix) {
+                               theprefix = "http://www.compbio.dundee.ac.uk/www-jpred/results";
+                       }
+                       
+                       final String datasrc = theprefix + "/usage-new/alljobs.dat";
+                       final String prefix = theprefix;
                        final JpredParserHTTP parser = new JpredParserHTTP(prefix);
 
                        int initialdelay = 300;