Commit 123227480c7e9290d614a5db0120c1028a326639

Authored by Diego Ceccarelli
1 parent fa7c1c6d

add resiltech collector

src/main/java/it/cnr/isti/hpc/trends/cli/ResiltechTrendsCLI.java
... ... @@ -20,6 +20,7 @@ import it.cnr.isti.hpc.property.ProjectProperties;
20 20 import it.cnr.isti.hpc.trends.TrendDetector;
21 21 import it.cnr.isti.hpc.trends.listener.TwitterAPIListener;
22 22 import it.cnr.isti.hpc.trends.output.FileTrendCollector;
  23 +import it.cnr.isti.hpc.trends.output.ResiltechCollector;
23 24  
24 25 import javax.activity.InvalidActivityException;
25 26  
... ... @@ -51,8 +52,10 @@ public class ResiltechTrendsCLI extends AbstractCommandLineInterface {
51 52  
52 53 TrendDetector td = new TrendDetector().setMinFreq(minFreq)
53 54 .setBucketInterval(bucketInterval);
  55 + td.addCollector(new FileTrendCollector("resiltech-trends.tsv")
  56 + .asPlain());
54 57 td.addCollector(new FileTrendCollector("resiltech-trends.json"));
55   - // td.addCollector(new ResiltechCollector());
  58 + td.addCollector(new ResiltechCollector());
56 59 TwitterAPIListener listener = new TwitterAPIListener(td);
57 60 listener.run();
58 61 }
... ...