flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juhani Connolly <juhani_conno...@cyberagent.co.jp>
Subject Re: Difference between EventDrivenSource and PollableSource?
Date Thu, 20 Jun 2013 03:15:14 GMT
The difference is pretty much described by the name. A pollable source 
will get regularly polled by the source runner asking it to generate 
events. An event driven source is responsible for generating the events 
itself and normally does this in response to some event happening. Have 
a look at SequenceGeneretorSource for an example of polling and 
ExecSource for an example of an event driven source.

On 06/19/2013 08:16 PM, Ashish wrote:
> Hi,
> I was trying to understand PollableSource and EventDrivenSource, but 
> got confused. Is the difference based on how Events are consumed by 
> Channel or something else.
> Also, how to decide which one to use while implementing a custom Source.
> thanks
> ashish
> Blog: http://www.ashishpaliwal.com/blog
> My Photo Galleries: http://www.pbase.com/ashishpaliwal

View raw message