public interface Adaptor
Modifier and Type | Method and Description |
---|---|
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.
|
String |
parseArgs(String params)
Parse args, return stream name.
|
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
|
void start(String adaptorID, String type, long offset, ChunkReceiver dest, AdaptorManager c) throws AdaptorException
type
- the application type, who is starting this adaptorstatus
- the status string to use for configuration.offset
- the stream offset of the first byte sent by this adaptorAdaptorException
String getCurrentStatus()
String getType()
String parseArgs(String params)
@Deprecated long shutdown() throws AdaptorException
AdaptorException
long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
AdaptorException
@Deprecated void hardStop() throws AdaptorException
AdaptorException
Copyright © ${year} The Apache Software Foundation