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, start
public String getCurrentStatus()
Adaptor
getCurrentStatus
in interface Adaptor
public void start(long offset) throws AdaptorException
start
in class AbstractAdaptor
AdaptorException
public String parseArgs(String bytesPerSecParam)
parseArgs
in class AbstractAdaptor
public ChunkImpl nextChunk(int arraySize)
public long shutdown(AdaptorShutdownPolicy shutdownPolicy)
Adaptor
public static boolean checkChunk(Chunk chunk)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.