SessionCountAnalyser.java from Tea Stats at Krugle
Show SessionCountAnalyser.java syntax highlighted
package net.time4tea.webstats.analyser.composite.session;
import net.time4tea.webstats.analyser.Analyser;
import net.time4tea.webstats.analyser.extractor.key.ConstantKeyFinder;
import net.time4tea.webstats.jms.EnvironmentException;
import net.time4tea.webstats.process.Processor;
import net.time4tea.webstats.session.Session;
import net.time4tea.webstats.statistic.repo.StatisticMapRepository;
/**
* Originally richja 04-May-2007
*/
public class SessionCountAnalyser implements Processor<Session> {
private Analyser<Session> analyser;
public SessionCountAnalyser(StatisticMapRepository repository) {
analyser = new Analyser<Session>("Visits", repository, new ConstantKeyFinder());
}
public boolean process(Session thing) throws EnvironmentException {
return analyser.process(thing);
}
}
See more files for this project here