Return-Path: X-Original-To: apmail-streams-commits-archive@minotaur.apache.org Delivered-To: apmail-streams-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7424B17D85 for ; Tue, 14 Apr 2015 18:41:32 +0000 (UTC) Received: (qmail 40419 invoked by uid 500); 14 Apr 2015 18:41:32 -0000 Delivered-To: apmail-streams-commits-archive@streams.apache.org Received: (qmail 40402 invoked by uid 500); 14 Apr 2015 18:41:32 -0000 Mailing-List: contact commits-help@streams.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@streams.incubator.apache.org Delivered-To: mailing list commits@streams.incubator.apache.org Received: (qmail 40390 invoked by uid 99); 14 Apr 2015 18:41:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 18:41:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 14 Apr 2015 18:41:23 +0000 Received: (qmail 35500 invoked by uid 99); 14 Apr 2015 18:41:03 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 18:41:03 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 18063AC0922 for ; Tue, 14 Apr 2015 18:41:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r947623 [5/12] - in /websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/streams/ apidocs/org/apache/streams/... Date: Tue, 14 Apr 2015 18:41:01 -0000 To: commits@streams.incubator.apache.org From: sblackmon@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150414184103.18063AC0922@hades.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/RssStreamProviderTask.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/RssStreamProviderTask.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/RssStreamProviderTask.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,481 @@ + + + + + + +RssStreamProviderTask (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + + +
+
org.apache.streams.rss.provider
+

Class RssStreamProviderTask

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.apache.streams.rss.provider.RssStreamProviderTask
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Runnable
    +
    +
    +
    +
    public class RssStreamProviderTask
    +extends Object
    +implements Runnable
    +
    A Runnable task that queues rss feed data. + + RssStreamProviderTask reads the content of an rss feed and queues the articles from + the feed inform of a ObjectNode wrapped in a StreamsDatum. + The task can filter articles by a published date. If the task cannot parse the date of the article or the article does not contain a + published date, by default the task will attempt to queue article. + + A task can be run in perpetual mode which will store the article urls in a static variable. The next time a RssStreamProviderTask + is run, it will not queue data that was seen the previous time the rss feed was read. This is an attempt to reduce + multiple copies of an article from being out put by a RssStreamProvider. + + ** Warning! ** + It still is possible to output multiples of the same article. If multiple tasks executions for the same rss feed overlap + in execution time, it possible that the previously seen articles static variable will not have been updated in time.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        PREVIOUSLY_SEEN

        +
        protected static final Map<String,Set<String>> PREVIOUSLY_SEEN
        +
        Map that contains the Set of previously seen articles by an rss feed.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RssStreamProviderTask

        +
        public RssStreamProviderTask(BlockingQueue<StreamsDatum> queue,
        +                             String rssFeed)
        +
        Non-perpetual mode, no date filter, time out of 10 sec
        +
        +
        Parameters:
        +
        queue -
        +
        rssFeed -
        +
        See Also:
        +
        org.apache.streams.rss.provider.RssStreamProviderTask#RssStreamProviderTask(java.util.concurrent.BlockingQueue, String, org.joda.time.DateTime, int, boolean)}
        +
        +
      • +
      + + + +
        +
      • +

        RssStreamProviderTask

        +
        public RssStreamProviderTask(BlockingQueue<StreamsDatum> queue,
        +                             String rssFeed,
        +                             int timeOut)
        +
        Non-perpetual mode, no date filter
        +
        +
        Parameters:
        +
        queue -
        +
        rssFeed -
        +
        timeOut -
        +
        See Also:
        +
        org.apache.streams.rss.provider.RssStreamProviderTask#RssStreamProviderTask(java.util.concurrent.BlockingQueue, String, org.joda.time.DateTime, int, boolean)}
        +
        +
      • +
      + + + +
        +
      • +

        RssStreamProviderTask

        +
        public RssStreamProviderTask(BlockingQueue<StreamsDatum> queue,
        +                             String rssFeed,
        +                             org.joda.time.DateTime publishedSince)
        +
        Non-perpetual mode, time out of 10 sec
        +
        +
        Parameters:
        +
        queue -
        +
        rssFeed -
        +
        publishedSince -
        +
        See Also:
        +
        org.apache.streams.rss.provider.RssStreamProviderTask#RssStreamProviderTask(java.util.concurrent.BlockingQueue, String, org.joda.time.DateTime, int, boolean)}
        +
        +
      • +
      + + + +
        +
      • +

        RssStreamProviderTask

        +
        public RssStreamProviderTask(BlockingQueue<StreamsDatum> queue,
        +                             String rssFeed,
        +                             org.joda.time.DateTime publishedSince,
        +                             int timeOut,
        +                             boolean perpetual)
        +
        RssStreamProviderTask that reads an rss feed url and queues the resulting articles as StreamsDatums with the documents + being object nodes.
        +
        +
        Parameters:
        +
        queue - Queue to push data to
        +
        rssFeed - url of rss feed to read
        +
        publishedSince - DateTime to filter articles by, will queue articles with published times after this
        +
        timeOut - url connection timeout in milliseconds
        +
        perpetual - true, if you want to run in perpetual mode. NOT RECOMMENDED
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getRssFeed

        +
        public String getRssFeed()
        +
        The rss feed url that this task is responsible for reading
        +
        +
        Returns:
        +
        rss feed url
        +
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface Runnable
        +
        +
      • +
      + + + +
        +
      • +

        queueFeedEntries

        +
        protected Set<String> queueFeedEntries(URL feedUrl)
        +                                throws IOException,
        +                                       com.sun.syndication.io.FeedException
        +
        Reads the url and queues the data
        +
        +
        Parameters:
        +
        feedUrl - rss feed url
        +
        Returns:
        +
        set of all article urls that were read from the feed
        +
        Throws:
        +
        IOException - when it cannot connect to the url or the url is malformed
        +
        com.sun.syndication.io.FeedException - when it cannot reed the feed.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssEventClassifier.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssEventClassifier.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssEventClassifier.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,126 @@ + + + + + + +Uses of Class org.apache.streams.rss.provider.RssEventClassifier (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Uses of Class
org.apache.streams.rss.provider.RssEventClassifier

+
+
No usage of org.apache.streams.rss.provider.RssEventClassifier
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssEventProcessor.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssEventProcessor.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssEventProcessor.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,126 @@ + + + + + + +Uses of Class org.apache.streams.rss.provider.RssEventProcessor (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Uses of Class
org.apache.streams.rss.provider.RssEventProcessor

+
+
No usage of org.apache.streams.rss.provider.RssEventProcessor
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamConfigurator.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamConfigurator.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamConfigurator.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,126 @@ + + + + + + +Uses of Class org.apache.streams.rss.provider.RssStreamConfigurator (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Uses of Class
org.apache.streams.rss.provider.RssStreamConfigurator

+
+
No usage of org.apache.streams.rss.provider.RssStreamConfigurator
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamProvider.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamProvider.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamProvider.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,126 @@ + + + + + + +Uses of Class org.apache.streams.rss.provider.RssStreamProvider (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Uses of Class
org.apache.streams.rss.provider.RssStreamProvider

+
+
No usage of org.apache.streams.rss.provider.RssStreamProvider
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamProviderTask.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamProviderTask.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/class-use/RssStreamProviderTask.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,126 @@ + + + + + + +Uses of Class org.apache.streams.rss.provider.RssStreamProviderTask (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Uses of Class
org.apache.streams.rss.provider.RssStreamProviderTask

+
+
No usage of org.apache.streams.rss.provider.RssStreamProviderTask
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-frame.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-frame.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-frame.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,25 @@ + + + + + + +org.apache.streams.rss.provider (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + +

org.apache.streams.rss.provider

+ + + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-summary.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-summary.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-summary.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,166 @@ + + + + + + +org.apache.streams.rss.provider (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Package org.apache.streams.rss.provider

+
+
+ +
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-tree.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-tree.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-tree.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,143 @@ + + + + + + +org.apache.streams.rss.provider Class Hierarchy (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Hierarchy For Package org.apache.streams.rss.provider

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-use.html ============================================================================== --- websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-use.html (added) +++ websites/production/streams/content/site/0.2-incubating-SNAPSHOT/streams-project/streams-contrib/streams-provider-rss/apidocs/org/apache/streams/rss/provider/package-use.html Tue Apr 14 18:41:00 2015 @@ -0,0 +1,126 @@ + + + + + + +Uses of Package org.apache.streams.rss.provider (streams-provider-rss 0.2-incubating-SNAPSHOT API) + + + + + + + + + + + +
+

Uses of Package
org.apache.streams.rss.provider

+
+
No usage of org.apache.streams.rss.provider
+ + + + +

Copyright © 2015 The Apache Software Foundation. All rights reserved.

+ +