public abstract class AbstractAdaptor extends Object implements Adaptor
| Modifier and Type | Field and Description |
|---|---|
protected String |
adaptorID |
protected AdaptorManager |
control |
protected ChunkReceiver |
dest |
protected String |
type |
| Constructor and Description |
|---|
AbstractAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterAndStop() |
String |
getType() |
void |
hardStop()
Deprecated.
|
abstract String |
parseArgs(String s) |
String |
parseArgs(String d,
String s,
AdaptorManager c)
Parse args, return stream name.
|
long |
shutdown()
Deprecated.
|
abstract void |
start(long offset) |
void |
start(String adaptorID,
String type,
long offset,
ChunkReceiver dest)
Start this adaptor
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentStatus, shutdownprotected String type
protected ChunkReceiver dest
protected String adaptorID
protected AdaptorManager control
public final void start(String adaptorID, String type, long offset, ChunkReceiver dest) throws AdaptorException
Adaptorstart in interface AdaptoradaptorID - 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 chunkAdaptorExceptionpublic abstract void start(long offset)
throws AdaptorException
AdaptorExceptionpublic void deregisterAndStop()
public String parseArgs(String d, String s, AdaptorManager c)
Adaptor@Deprecated public void hardStop() throws AdaptorException
AdaptorException@Deprecated public long shutdown() throws AdaptorException
AdaptorExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.