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
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 datatype, String params, AdaptorManager c)
long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
AdaptorException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.