Package org.apache.bookkeeper.verifier
Class DirectBookkeeperDriver
- java.lang.Object
-
- org.apache.bookkeeper.verifier.DirectBookkeeperDriver
-
- All Implemented Interfaces:
BookkeeperVerifier.BookkeeperDriver
class DirectBookkeeperDriver extends java.lang.Object implements BookkeeperVerifier.BookkeeperDriver
Driver for a normal Bookkeeper cluster.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.bookkeeper.verifier.BookkeeperVerifier.BookkeeperDriver
BookkeeperVerifier.BookkeeperDriver.ReadCallback
-
-
Constructor Summary
Constructors Constructor Description DirectBookkeeperDriver(BookKeeper client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeLedger(long ledgerID, java.util.function.Consumer<java.lang.Integer> cb)
void
createLedger(long ledgerID, int enSize, int writeQSize, int ackQSize, java.util.function.Consumer<java.lang.Integer> cb)
void
deleteLedger(long ledgerID, java.util.function.Consumer<java.lang.Integer> cb)
void
readEntries(long ledgerID, long firstEntryID, long lastEntryID, java.util.function.BiConsumer<java.lang.Integer,java.util.ArrayList<byte[]>> cb)
void
writeEntry(long ledgerID, long entryID, byte[] data, java.util.function.Consumer<java.lang.Integer> cb)
-
-
-
Constructor Detail
-
DirectBookkeeperDriver
DirectBookkeeperDriver(BookKeeper client)
-
-
Method Detail
-
createLedger
public void createLedger(long ledgerID, int enSize, int writeQSize, int ackQSize, java.util.function.Consumer<java.lang.Integer> cb)
- Specified by:
createLedger
in interfaceBookkeeperVerifier.BookkeeperDriver
-
closeLedger
public void closeLedger(long ledgerID, java.util.function.Consumer<java.lang.Integer> cb)
- Specified by:
closeLedger
in interfaceBookkeeperVerifier.BookkeeperDriver
-
deleteLedger
public void deleteLedger(long ledgerID, java.util.function.Consumer<java.lang.Integer> cb)
- Specified by:
deleteLedger
in interfaceBookkeeperVerifier.BookkeeperDriver
-
writeEntry
public void writeEntry(long ledgerID, long entryID, byte[] data, java.util.function.Consumer<java.lang.Integer> cb)
- Specified by:
writeEntry
in interfaceBookkeeperVerifier.BookkeeperDriver
-
readEntries
public void readEntries(long ledgerID, long firstEntryID, long lastEntryID, java.util.function.BiConsumer<java.lang.Integer,java.util.ArrayList<byte[]>> cb)
- Specified by:
readEntries
in interfaceBookkeeperVerifier.BookkeeperDriver
-
-