Dekoh platform API

dekoh.portal.syndication.aggregator.core
Class AggregatorFactory

java.lang.Object
  extended by dekoh.portal.syndication.aggregator.core.AggregatorFactory

public class AggregatorFactory
extends Object

AggregatorFactory is the creator of AggregatorImpl . This is the prefered way of creating Feed aggregators as all aggregators created using this factory class will share a common thread pool based implementation of FeedRetriever and FeedConsumer, thereby controlling the number of threads created by various aggregators

Since:
Oct 8, 2007

Field Summary
static FeedRetriever feedRetriever
           
 
Constructor Summary
AggregatorFactory(File cacheDir)
           
 
Method Summary
 Aggregator createAggregator(SubscriptionList subscriptionList, long scheduleFrequency, AggregatedItemTransformer[] transformers)
           
 Aggregator createAggregator(SubscriptionList subscriptionList, long scheduleFrequency, String aggregatorId, AggregatedItemTransformer[] transformers)
           
 Aggregator createAggregator(SubscriptionList subscriptionList, long scheduleFrequency, String aggregatorId, SubscriptionItemFetcher subscriptionItemFetcher, AggregatedItemTransformer[] transformers)
           
 Aggregator createAggregator(SubscriptionList subscriptionList, long scheduleFrequency, SubscriptionItemFetcher itemFetcher, AggregatedItemTransformer[] transformers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

feedRetriever

public static final FeedRetriever feedRetriever
Constructor Detail

AggregatorFactory

public AggregatorFactory(File cacheDir)
Method Detail

createAggregator

public Aggregator createAggregator(SubscriptionList subscriptionList,
                                   long scheduleFrequency,
                                   AggregatedItemTransformer[] transformers)

createAggregator

public Aggregator createAggregator(SubscriptionList subscriptionList,
                                   long scheduleFrequency,
                                   SubscriptionItemFetcher itemFetcher,
                                   AggregatedItemTransformer[] transformers)

createAggregator

public Aggregator createAggregator(SubscriptionList subscriptionList,
                                   long scheduleFrequency,
                                   String aggregatorId,
                                   AggregatedItemTransformer[] transformers)
                            throws AggregatorAlreadyExistsException
Throws:
AggregatorAlreadyExistsException

createAggregator

public Aggregator createAggregator(SubscriptionList subscriptionList,
                                   long scheduleFrequency,
                                   String aggregatorId,
                                   SubscriptionItemFetcher subscriptionItemFetcher,
                                   AggregatedItemTransformer[] transformers)
                            throws AggregatorAlreadyExistsException
Throws:
AggregatorAlreadyExistsException

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers