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() |
String |
parseArgs(String datatype,
String params,
AdaptorManager c)
Parse args, return stream name.
|
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop.
|
void |
start(String adaptorID,
String type,
long offset,
ChunkReceiver dest)
Start this adaptor
|
void start(String adaptorID, String type, long offset, ChunkReceiver dest) throws AdaptorException
adaptorID - cutomized application IDtype - the application type, who is starting this adaptoroffset - the stream offset of the first byte sent by this adaptordest - receiver of the chunkAdaptorExceptionString getCurrentStatus()
String getType()
String parseArgs(String datatype, String params, AdaptorManager c)
datatype - params - c - long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
shutdownPolicy - AdaptorExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.