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, wait
getCurrentStatus, shutdown
protected 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
Adaptor
start
in interface Adaptor
type
- the application type, who is starting this adaptoroffset
- the stream offset of the first byte sent by this adaptorAdaptorException
public 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 © 2014 Apache Software Foundation. All Rights Reserved.