public class WriteaheadBuffered extends AbstractWrapper
| Constructor and Description |
|---|
WriteaheadBuffered() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Chunk event)
Add a chunk to the queue, potentially blocking.
|
void |
committed(long l) |
long |
shutdown(AdaptorShutdownPolicy p)
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
|
getCurrentStatus, getType, parseArgspublic void add(Chunk event) throws InterruptedException
ChunkReceiveradd in interface ChunkReceiveradd in class AbstractWrapperevent - is a Chukwa ChunkInterruptedException - if thread is interrupted while blockingpublic void start(String adaptorID, String type, long offset, ChunkReceiver dest) throws AdaptorException
AbstractWrapperstart in interface Adaptorstart in class AbstractWrapperadaptorID - 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 void committed(long l)
committed in interface NotifyOnCommitAdaptorcommitted in class AbstractWrapperpublic long shutdown(AdaptorShutdownPolicy p) throws AdaptorException
Adaptorshutdown in interface Adaptorshutdown in class AbstractWrapperp - is defined as forcefully or gracefullyAdaptorException - Exception on shutdownCopyright © 2016 Apache Software Foundation. All Rights Reserved.