org.apache.hadoop.chukwa.datacollection.adaptor
Class AbstractAdaptor
java.lang.Object
org.apache.hadoop.chukwa.datacollection.adaptor.AbstractAdaptor
- All Implemented Interfaces:
- Adaptor
- Direct Known Subclasses:
- DirTailingAdaptor, ExecAdaptor, FileAdaptor, LWFTAdaptor
public abstract class AbstractAdaptor
- extends Object
- implements Adaptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected String type
dest
protected ChunkReceiver dest
adaptorID
protected String adaptorID
control
protected AdaptorManager control
AbstractAdaptor
public AbstractAdaptor()
getType
public final String getType()
- Specified by:
getType
in interface Adaptor
start
public final void start(String adaptorID,
String type,
long offset,
ChunkReceiver dest,
AdaptorManager c)
throws AdaptorException
- Description copied from interface:
Adaptor
- Start this adaptor
- Specified by:
start
in interface Adaptor
type
- the application type, who is starting this adaptoroffset
- the stream offset of the first byte sent by this adaptor
- Throws:
AdaptorException
start
public abstract void start(long offset)
throws AdaptorException
- Throws:
AdaptorException
deregisterAndStop
public void deregisterAndStop(boolean gracefully)
Copyright © ${year} The Apache Software Foundation