public final class HdfsConsumer extends ScheduledPollConsumer
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
HdfsConsumer(HdfsEndpoint endpoint,
Processor processor,
HdfsConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
doPoll() |
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
HdfsEndpoint |
getEndpoint()
Gets the endpoint this
Consumer consumes from. |
protected int |
poll()
The polling method which is invoked periodically to poll this consumer
|
afterPoll, beforePoll, doShutdown, doStop, doSuspend, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getTimeUnit, isPollAllowed, isPolling, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, processEmptyMessage, run, setDelay, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startSchedulergetAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler, toStringdoResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisSuspended, resume, suspendpublic HdfsConsumer(HdfsEndpoint endpoint, Processor processor, HdfsConfiguration config)
public HdfsEndpoint getEndpoint()
ConsumerConsumer consumes from.getEndpoint in interface ConsumergetEndpoint in class DefaultConsumerprotected void doStart()
throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class ScheduledPollConsumerExceptionServiceSupport.doStop()protected int poll()
throws Exception
ScheduledPollConsumerpoll in class ScheduledPollConsumerException - can be thrown if an exception occurred during pollingApache CAMEL