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

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

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


Constructor Summary
LoggingEventWrapperProtobufDecoder(boolean compressing)
           
 
Method Summary
static de.huxhorn.lilith.data.eventsource.EventIdentifier convert(LoggingProto.EventIdentifier eventIdentifier)
           
static de.huxhorn.lilith.data.eventsource.EventWrapper<de.huxhorn.lilith.data.logging.LoggingEvent> convert(LoggingProto.EventWrapper parsedEvent)
           
static de.huxhorn.lilith.data.eventsource.SourceIdentifier convert(LoggingProto.SourceIdentifier sourceIdentifier)
           
 de.huxhorn.lilith.data.eventsource.EventWrapper<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

LoggingEventWrapperProtobufDecoder

public LoggingEventWrapperProtobufDecoder(boolean compressing)
Method Detail

isCompressing

public boolean isCompressing()

setCompressing

public void setCompressing(boolean compressing)

decode

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

convert

public static de.huxhorn.lilith.data.eventsource.EventWrapper<de.huxhorn.lilith.data.logging.LoggingEvent> convert(LoggingProto.EventWrapper parsedEvent)

convert

public static de.huxhorn.lilith.data.eventsource.EventIdentifier convert(LoggingProto.EventIdentifier eventIdentifier)

convert

public static de.huxhorn.lilith.data.eventsource.SourceIdentifier convert(LoggingProto.SourceIdentifier sourceIdentifier)