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

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

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


Constructor Summary
LoggingEventWrapperProtobufEncoder(boolean compressing)
           
 
Method Summary
static LoggingProto.EventIdentifier convert(de.huxhorn.lilith.data.eventsource.EventIdentifier eventId)
           
static LoggingProto.EventWrapper convert(de.huxhorn.lilith.data.eventsource.EventWrapper<de.huxhorn.lilith.data.logging.LoggingEvent> wrapper)
           
static LoggingProto.SourceIdentifier convert(de.huxhorn.lilith.data.eventsource.SourceIdentifier sourceId)
           
 byte[] encode(de.huxhorn.lilith.data.eventsource.EventWrapper<de.huxhorn.lilith.data.logging.LoggingEvent> wrapper)
           
 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

LoggingEventWrapperProtobufEncoder

public LoggingEventWrapperProtobufEncoder(boolean compressing)
Method Detail

isCompressing

public boolean isCompressing()

setCompressing

public void setCompressing(boolean compressing)

encode

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

convert

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

convert

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

convert

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