Class InternalScribeCodec


  • public final class InternalScribeCodec
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int messageSizeInBytes​(byte[] category, int spanSizeInBytes)  
      static int messageSizeInBytes​(byte[] category, java.util.List<byte[]> encodedSpans)  
      static boolean readLogResponse​(int seqid, org.apache.thrift.protocol.TBinaryProtocol iprot)
      Returns false if the scribe response was try later.
      static void writeLogRequest​(byte[] category, java.util.List<byte[]> encodedSpans, int seqid, org.apache.thrift.protocol.TBinaryProtocol oprot)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InternalScribeCodec

        public InternalScribeCodec()
    • Method Detail

      • messageSizeInBytes

        public static int messageSizeInBytes​(byte[] category,
                                             int spanSizeInBytes)
      • messageSizeInBytes

        public static int messageSizeInBytes​(byte[] category,
                                             java.util.List<byte[]> encodedSpans)
      • writeLogRequest

        public static void writeLogRequest​(byte[] category,
                                           java.util.List<byte[]> encodedSpans,
                                           int seqid,
                                           org.apache.thrift.protocol.TBinaryProtocol oprot)
                                    throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • readLogResponse

        public static boolean readLogResponse​(int seqid,
                                              org.apache.thrift.protocol.TBinaryProtocol iprot)
                                       throws org.apache.thrift.TException
        Returns false if the scribe response was try later.
        Throws:
        org.apache.thrift.TException