public abstract class AbstractAdaptor extends Object implements Adaptor
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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentStatus, shutdown
public final void start(String adaptorID, String type, long offset, ChunkReceiver dest) throws AdaptorException
Adaptor
start
in interface Adaptor
adaptorID
- Adaptor IDtype
- the application type, who is starting this adaptoroffset
- the stream offset of the first byte sent by this adaptordest
- Chunk receiving destinationAdaptorException
- if adaptor can not be startedpublic abstract void start(long offset) throws AdaptorException
AdaptorException
public 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
AdaptorException
Copyright © 2016 Apache Software Foundation. All Rights Reserved.