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, parseArgs
public void add(Chunk event) throws InterruptedException
ChunkReceiver
add
in interface ChunkReceiver
add
in class AbstractWrapper
event
- is a Chukwa ChunkInterruptedException
- if thread is interrupted while blockingpublic void start(String adaptorID, String type, long offset, ChunkReceiver dest) throws AdaptorException
AbstractWrapper
start
in interface Adaptor
start
in class AbstractWrapper
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 void committed(long l)
committed
in interface NotifyOnCommitAdaptor
committed
in class AbstractWrapper
public long shutdown(AdaptorShutdownPolicy p) throws AdaptorException
Adaptor
shutdown
in interface Adaptor
shutdown
in class AbstractWrapper
p
- is defined as forcefully or gracefullyAdaptorException
- Exception on shutdownCopyright © 2016 Apache Software Foundation. All Rights Reserved.