de.huxhorn.lilith.data.logging.protobuf
Class LoggingEventProtobufDecoder

java.lang.Object
  extended by de.huxhorn.lilith.data.logging.protobuf.LoggingEventProtobufDecoder
All Implemented Interfaces:
de.huxhorn.sulky.codec.Decoder<de.huxhorn.lilith.data.logging.LoggingEvent>

public class LoggingEventProtobufDecoder
extends java.lang.Object
implements de.huxhorn.sulky.codec.Decoder<de.huxhorn.lilith.data.logging.LoggingEvent>


Constructor Summary
LoggingEventProtobufDecoder(boolean compressing)
           
 
Method Summary
static de.huxhorn.lilith.data.eventsource.LoggerContext convert(LoggingProto.LoggerContext loggerContext)
           
static de.huxhorn.lilith.data.logging.LoggingEvent convert(LoggingProto.LoggingEvent parsedEvent)
           
static de.huxhorn.lilith.data.logging.Marker convert(LoggingProto.Marker marker)
           
static de.huxhorn.lilith.data.logging.Message convert(LoggingProto.Message parsedMessage)
           
static de.huxhorn.lilith.data.logging.ExtendedStackTraceElement convert(LoggingProto.StackTraceElement ste)
           
static java.util.Map<java.lang.String,java.lang.String> convert(LoggingProto.StringMap stringMap)
           
static de.huxhorn.lilith.data.logging.ThreadInfo convert(LoggingProto.ThreadInfo parsedThreadInfo)
           
static de.huxhorn.lilith.data.logging.ThrowableInfo convert(LoggingProto.Throwable throwable)
           
 de.huxhorn.lilith.data.logging.LoggingEvent decode(byte[] bytes)
           
 boolean isCompressing()
           
 void setCompressing(boolean compressing)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingEventProtobufDecoder

public LoggingEventProtobufDecoder(boolean compressing)
Method Detail

isCompressing

public boolean isCompressing()

setCompressing

public void setCompressing(boolean compressing)

decode

public de.huxhorn.lilith.data.logging.LoggingEvent decode(byte[] bytes)
Specified by:
decode in interface de.huxhorn.sulky.codec.Decoder<de.huxhorn.lilith.data.logging.LoggingEvent>

convert

public static de.huxhorn.lilith.data.logging.Marker convert(LoggingProto.Marker marker)

convert

public static de.huxhorn.lilith.data.logging.ExtendedStackTraceElement convert(LoggingProto.StackTraceElement ste)

convert

public static de.huxhorn.lilith.data.logging.ThrowableInfo convert(LoggingProto.Throwable throwable)

convert

public static de.huxhorn.lilith.data.logging.Message convert(LoggingProto.Message parsedMessage)

convert

public static de.huxhorn.lilith.data.logging.ThreadInfo convert(LoggingProto.ThreadInfo parsedThreadInfo)

convert

public static de.huxhorn.lilith.data.eventsource.LoggerContext convert(LoggingProto.LoggerContext loggerContext)

convert

public static java.util.Map<java.lang.String,java.lang.String> convert(LoggingProto.StringMap stringMap)

convert

public static de.huxhorn.lilith.data.logging.LoggingEvent convert(LoggingProto.LoggingEvent parsedEvent)