Fix problem with too many open files and problem with not-flushed
[proteocache.git] / datadb / compbio / cassandra / CassandraCreate.java
index 55ff2a1..b147499 100644 (file)
@@ -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......");
                }
        }