All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gr.iti.mklab.sfc.streams.impl.RssStream Maven / Gradle / Ivy

Go to download

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();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy