Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ConstRateAdaptor() |
Modifier and Type | Method and Description |
---|---|
String |
getCurrentStatus()
Return the adaptor's state Should not include class name, datatype or byte
offset, which are written by caller.
|
String |
getStreamName()
Return the stream name
|
String |
getType() |
void |
hardStop()
Signals this adaptor to come to an abrupt stop, as quickly as it can.
|
void |
run() |
long |
shutdown()
Signals this adaptor to come to an orderly stop.
|
void |
start(long adaptor,
String type,
String bytesPerSecParam,
long offset,
ChunkReceiver dest)
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, yield
public String getCurrentStatus() throws AdaptorException
Adaptor
getCurrentStatus
in interface Adaptor
AdaptorException
public void start(long adaptor, String type, String bytesPerSecParam, long offset, ChunkReceiver dest) throws AdaptorException
Adaptor
start
in interface Adaptor
type
- the application type, who is starting this adaptorbytesPerSecParam
- the status string to use for configuration.offset
- the stream offset of the first byte sent by this adaptorAdaptorException
public String getStreamName()
Adaptor
getStreamName
in interface Adaptor
public void hardStop() throws AdaptorException
Adaptor
hardStop
in interface Adaptor
AdaptorException
public long shutdown() throws AdaptorException
Adaptor
shutdown
in interface Adaptor
AdaptorException
Copyright © ${year} The Apache Software Foundation