java.lang.Object
com.arpnetworking.metrics.proxy.models.messages.LogLine

public final class LogLine extends Object
Message class to hold data about a log entry that should be sent to clients.
Author:
Mohammed Kamel (mkamel at groupon dot com), Vivek Muppala (vivek at groupon dot com)
  • Constructor Details

    • LogLine

      public LogLine(Path file, byte[] line)
      Public constructor.
      Parameters:
      file - The name of the log file
      line - The raw log line.
  • Method Details

    • getFile

      public Path getFile()
    • getLine

      public List<Byte> getLine()
    • convertLineToString

      public String convertLineToString()
      Return the log line as a String. Callers should cache this value. The data is interpreted as UTF-8 by default.
      Returns:
      The line data as a String interpreted as UTF-8.
    • convertLineToString

      public String convertLineToString(Charset charset)
      Return the log line as a String. Callers should cache this value.
      Parameters:
      charset - The character set to use.
      Returns:
      The line data as a String.
    • toString

      public String toString()
      Overrides:
      toString in class Object