public class ConstRateAdaptor extends Thread implements Adaptor
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 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.
|
String |
getType() |
void |
hardStop()
Deprecated.
|
ChunkImpl |
nextChunk(int arraySize) |
String |
parseArgs(String bytesPerSecParam)
Parse args, return stream name.
|
void |
run() |
long |
shutdown()
Deprecated.
|
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop.
|
void |
start(String adaptorID,
String type,
long offset,
ChunkReceiver dest,
AdaptorManager c)
Start this adaptor
|
String |
toString() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldpublic String getCurrentStatus()
AdaptorgetCurrentStatus in interface Adaptorpublic void start(String adaptorID, String type, long offset, ChunkReceiver dest, AdaptorManager c) throws AdaptorException
Adaptorstart in interface Adaptortype - the application type, who is starting this adaptoroffset - the stream offset of the first byte sent by this adaptorAdaptorExceptionpublic String parseArgs(String bytesPerSecParam)
Adaptorpublic ChunkImpl nextChunk(int arraySize)
@Deprecated public void hardStop() throws AdaptorException
AdaptorhardStop in interface AdaptorAdaptorException@Deprecated public long shutdown() throws AdaptorException
Adaptorshutdown in interface AdaptorAdaptorExceptionpublic long shutdown(AdaptorShutdownPolicy shutdownPolicy)
Adaptorpublic static boolean checkChunk(Chunk chunk)
Copyright © ${year} The Apache Software Foundation