public class DebugWrapper extends Object implements Storage, org.apache.flume.conf.Configurable, com.datatorrent.api.Component<com.datatorrent.api.Context>
DebugWrapper class.
| Constructor and Description |
|---|
DebugWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(byte[] identifier)
This is used to clean up the files identified by identifier
|
void |
configure(org.apache.flume.Context cntxt) |
void |
flush()
This flushes the data from stream
|
byte[] |
retrieve(byte[] identifier)
This returns the data bytes for the current identifier and the identifier for next data bytes.
|
byte[] |
retrieveNext()
This returns data bytes and the identifier for the next data bytes.
|
void |
setup(com.datatorrent.api.Context t1) |
byte[] |
store(com.datatorrent.netlet.util.Slice bytes)
This stores the bytes and returns the unique identifier to retrieve these bytes
|
void |
teardown() |
public byte[] store(com.datatorrent.netlet.util.Slice bytes)
Storagepublic byte[] retrieve(byte[] identifier)
Storagepublic byte[] retrieveNext()
StorageretrieveNext in interface Storagepublic void clean(byte[] identifier)
Storagepublic void flush()
Storagepublic void configure(org.apache.flume.Context cntxt)
configure in interface org.apache.flume.conf.Configurablepublic void setup(com.datatorrent.api.Context t1)
setup in interface com.datatorrent.api.Component<com.datatorrent.api.Context>public void teardown()
teardown in interface com.datatorrent.api.Component<com.datatorrent.api.Context>Copyright © 2015-2017 Apache Software Foundation. All Rights Reserved.