|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PollableSource
A Source that requires an external driver to poll to determine
whether there are events that are available to ingest
from the source.
EventDrivenSourceRunner| Nested Class Summary | |
|---|---|
static class |
PollableSource.Status
|
| Method Summary | |
|---|---|
PollableSource.Status |
process()
Attempt to pull an item from the source, sending it to the channel. |
| Methods inherited from interface org.apache.flume.Source |
|---|
getChannelProcessor, setChannelProcessor |
| Methods inherited from interface org.apache.flume.lifecycle.LifecycleAware |
|---|
getLifecycleState, start, stop |
| Methods inherited from interface org.apache.flume.NamedComponent |
|---|
getName, setName |
| Method Detail |
|---|
PollableSource.Status process()
throws EventDeliveryException
Attempt to pull an item from the source, sending it to the channel.
When driven by an EventDrivenSourceRunner process is guaranteed
to be called only by a single thread at a time, with no concurrency.
Any other mechanism driving a pollable source must follow the same
semantics.
READY if one or more events were created from the source.
BACKOFF if no events could be created from the source.
EventDeliveryException - If there was a failure in delivering to
the attached channel, or if a failure occurred in acquiring data from
the source.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||