X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=datadb%2Fcompbio%2Fcassandra%2FCassandraCreate.java;h=b147499123d0c28796b0fb5dd43446331a60c885;hb=7418234f16f46bc59873db6623dbe33f605f0691;hp=55ff2a102ba02b61ab4f09eda4d86a1e24e7f04b;hpb=9575bd4f52dc7d3a296c3b58f3ce1bbb674d244d;p=proteocache.git diff --git a/datadb/compbio/cassandra/CassandraCreate.java b/datadb/compbio/cassandra/CassandraCreate.java index 55ff2a1..b147499 100644 --- a/datadb/compbio/cassandra/CassandraCreate.java +++ b/datadb/compbio/cassandra/CassandraCreate.java @@ -80,7 +80,8 @@ public class CassandraCreate { */ mutatorLong = HFactory.createMutator(ksp, ls); - if (source.equals("http")) { + if (true) { + //if (source.equals("http")) { // get data from real Jpred production server System.out.println("Parsing web data source......"); String datasrc = "http://www.compbio.dundee.ac.uk/www-jpred/results/usage-new/alljobs.dat"; @@ -88,16 +89,16 @@ public class CassandraCreate { JpredParserHTTP parser = new JpredParserHTTP(prefix); parser.Parsing(datasrc, 4); flushData(); - } else if (source.equals("file")) { + } + if (true) { + //if (source.equals("file")) { // get irtifical data generated for the DB stress tests System.out.println("Parsing local file data source......"); String datasrc = "/home/asherstnev/Projects/Java.projects/proteocache/data_stress_test/data.dat"; String prefix = "/home/asherstnev/Projects/Java.projects/proteocache/data_stress_test/Jpreddata"; JpredParserLocalFile parser = new JpredParserLocalFile(prefix); - parser.Parsing(datasrc, 365); + parser.Parsing(datasrc, 190); flushData(); - } else { - System.out.println("Unknown data source......"); } }