public class StressSource extends AbstractPollableSource implements Configurable
a1.sources = stresssource-1 a1.channels = memoryChannel-1 a1.sources.stresssource-1.type = org.apache.flume.source.StressSource a1.sources.stresssource-1.size = 10240 a1.sources.stresssource-1.maxTotalEvents = 1000000 a1.sources.stresssource-1.channels = memoryChannel-1See
AbstractPollableSource.configure(Context) for configuration options.PollableSource.Status| Constructor and Description | 
|---|
| StressSource() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | doConfigure(Context context)Read parameters from context
 -maxTotalEvents = type long that defines the total number of Events to be sent
 -maxSuccessfulEvents = type long that defines the number of successful Events
 -size = type int that defines the number of bytes in each Event
 -batchSize = type int that defines the number of Events being sent in one batch | 
| protected PollableSource.Status | doProcess() | 
| protected void | doStart() | 
| protected void | doStop() | 
configure, getBackOffSleepIncrement, getMaxBackOffSleepInterval, processgetChannelProcessor, getLifecycleState, getName, getStartException, isStarted, setChannelProcessor, setLifecycleState, setName, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfiguregetChannelProcessor, setChannelProcessorgetLifecycleState, start, stopgetName, setNameprotected void doConfigure(Context context) throws FlumeException
doConfigure in class BasicSourceSemanticsFlumeExceptionprotected PollableSource.Status doProcess() throws EventDeliveryException
doProcess in class AbstractPollableSourceEventDeliveryExceptionprotected void doStart()
                throws FlumeException
doStart in class BasicSourceSemanticsFlumeExceptionprotected void doStop()
               throws FlumeException
doStop in class BasicSourceSemanticsFlumeExceptionCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.