Merge branch 'servlets'
[proteocache.git] / datadb / compbio / cassandra / JpredParserLocalFile.java
index 4b254ae..a379d4e 100644 (file)
@@ -16,18 +16,18 @@ import java.util.Date;
 import java.util.List;
 
 public class JpredParserLocalFile implements JpredParser {
-       private CassandraNativeConnector cc = new CassandraNativeConnector();
+       private CassandraWriter cw = new CassandraWriter();
        private String dirprefix;
 
        public void setSource(String newsourceprefix) {
                this.dirprefix = newsourceprefix;
        }
 
-       JpredParserLocalFile() {
+       public JpredParserLocalFile() {
                this.dirprefix = "/home/asherstnev/Projects/Java.projects/proteocache/data_stress_test/data.dat";
        }
 
-       JpredParserLocalFile(String sourceurl) {
+       public JpredParserLocalFile(String sourceurl) {
                this.dirprefix = sourceurl;
        }
 
@@ -103,7 +103,7 @@ public class JpredParserLocalFile implements JpredParser {
                                                        } catch (ParseException e) {
                                                                e.printStackTrace();
                                                        }
-                                                       countinsertions += cc.FormQueryTables(insertdate, starttime, finishtime, ip, id, "OK", "OK", newprotein, seqs);
+                                                       countinsertions += cw.FormQueryTables(insertdate, starttime, finishtime, ip, id, "OK", "OK", newprotein, seqs);
                                                }
                                                fr.close();
                                        } catch (IOException e) {