Class FormatUtil
- java.lang.Object
-
- org.apache.bookkeeper.tools.cli.commands.bookie.FormatUtil
-
public class FormatUtil extends java.lang.Object.Provide to format message.
-
-
Constructor Summary
Constructors Constructor Description FormatUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.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.
-
-
-
Method Detail
-
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
public static java.lang.String bytes2Hex(byte[] data)
-
-