gr.iti.mklab.sfc.streams.impl.RssStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mklab-stream-manager Show documentation
Show all versions of mklab-stream-manager Show documentation
Monitors a set of social streams (e.g. Twitter status updates) and collects the incoming content.
The newest version!
package gr.iti.mklab.sfc.streams.impl;
import gr.iti.mklab.framework.common.domain.Source;
import gr.iti.mklab.framework.common.domain.config.Configuration;
import gr.iti.mklab.framework.retrievers.impl.RssRetriever;
import gr.iti.mklab.sfc.streams.Stream;
/**
* Class responsible for setting up the connection for retrieving RSS feeds.
*
* @author Manos Schinas - [email protected]
*/
public class RssStream extends Stream {
public static Source SOURCE = Source.RSS;
@Override
public void open(Configuration config) {
this.maxRequests = Integer.MAX_VALUE;
this.timeWindow = Integer.parseInt(config.getParameter(TIME_WINDOW));
retriever = new RssRetriever();
}
@Override
public String getName() {
return SOURCE.name();
}
}