public class StressSource extends AbstractPollableSource implements Configurable, BatchSizeSupported
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() |
long |
getBatchSize()
Returns the batch size
|
configure, getBackOffSleepIncrement, getMaxBackOffSleepInterval, process
getChannelProcessor, getLifecycleState, getName, getStartException, isStarted, setChannelProcessor, setLifecycleState, setName, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
configure
getChannelProcessor, setChannelProcessor
getLifecycleState, start, stop
getName, setName
protected void doConfigure(Context context) throws FlumeException
doConfigure
in class BasicSourceSemantics
FlumeException
protected PollableSource.Status doProcess() throws EventDeliveryException
doProcess
in class AbstractPollableSource
EventDeliveryException
protected void doStart() throws FlumeException
doStart
in class BasicSourceSemantics
FlumeException
protected void doStop() throws FlumeException
doStop
in class BasicSourceSemantics
FlumeException
public long getBatchSize()
BatchSizeSupported
getBatchSize
in interface BatchSizeSupported
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.