|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.chukwa.datacollection.adaptor.AbstractWrapper
public class AbstractWrapper
| Constructor Summary | |
|---|---|
AbstractWrapper()
|
|
| Method Summary | |
|---|---|
void |
add(Chunk event)
Add a chunk to the queue, potentially blocking. |
void |
committed(long commitedByte)
|
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 innerClassName,
String params,
AdaptorManager a)
Note that the name of the inner class will get parsed out as a type |
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop. |
void |
start(String adaptorID,
String type,
long offset,
ChunkReceiver dest)
Note that the name of the inner class will get parsed out as a type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractWrapper()
| Method Detail |
|---|
public String getCurrentStatus()
Adaptor
getCurrentStatus in interface Adaptor
public String parseArgs(String innerClassName,
String params,
AdaptorManager a)
parseArgs in interface Adaptor
public long shutdown(AdaptorShutdownPolicy shutdownPolicy)
throws AdaptorException
Adaptor
shutdown in interface AdaptorAdaptorExceptionpublic String getType()
getType in interface Adaptor
public void start(String adaptorID,
String type,
long offset,
ChunkReceiver dest)
throws AdaptorException
start in interface Adaptortype - the application type, who is starting this adaptoroffset - the stream offset of the first byte sent by this adaptor
AdaptorException
public void add(Chunk event)
throws InterruptedException
ChunkReceiver
add in interface ChunkReceiverInterruptedException - if thread is interrupted while blockingpublic void committed(long commitedByte)
committed in interface NotifyOnCommitAdaptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||