Class FormatUtil
java.lang.Object
org.apache.bookkeeper.tools.cli.commands.bookie.FormatUtil
.Provide to format message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringbytes2Hex(byte[] data) static voidformatEntry(long pos, io.netty.buffer.ByteBuf recBuff, boolean printMsg, LedgerIdFormatter ledgerIdFormatter, EntryFormatter entryFormatter) Format the message into a readable format.
-
Constructor Details
-
FormatUtil
public FormatUtil()
-
-
Method Details
-
formatEntry
public static void formatEntry(long pos, io.netty.buffer.ByteBuf recBuff, boolean printMsg, LedgerIdFormatter ledgerIdFormatter, EntryFormatter entryFormatter) Format the message into a readable format.- Parameters:
pos- File offset of the message stored in entry log filerecBuff- Entry DataprintMsg- Whether printing the message bodyledgerIdFormatter-entryFormatter-
-
bytes2Hex
-