java.lang.Object
org.apache.bookkeeper.tools.cli.commands.bookie.FormatUtil

public class FormatUtil extends Object
.Provide to format message.
  • 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 file
      recBuff - Entry Data
      printMsg - Whether printing the message body
      ledgerIdFormatter -
      entryFormatter -
    • bytes2Hex

      public static String bytes2Hex(byte[] data)