public class ConstRateAdaptor extends AbstractAdaptor implements Runnable
adaptorID, control, dest, type| Constructor and Description |
|---|
ConstRateAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkChunk(Chunk chunk) |
String |
getCurrentStatus()
Return the adaptor's state Should not include class name or byte
offset, which are written by caller.
|
ChunkImpl |
nextChunk(int arraySize) |
String |
parseArgs(String bytesPerSecParam) |
void |
run() |
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop.
|
void |
start(long offset) |
String |
toString() |
deregisterAndStop, getType, hardStop, parseArgs, shutdown, startpublic String getCurrentStatus()
AdaptorgetCurrentStatus in interface Adaptorpublic void start(long offset)
throws AdaptorException
start in class AbstractAdaptorAdaptorExceptionpublic String parseArgs(String bytesPerSecParam)
parseArgs in class AbstractAdaptorpublic ChunkImpl nextChunk(int arraySize)
public long shutdown(AdaptorShutdownPolicy shutdownPolicy)
Adaptorpublic static boolean checkChunk(Chunk chunk)
Copyright © ${year} The Apache Software Foundation