Class InternalScribeCodec


  • public final class InternalScribeCodec
    extends Object
    • Constructor Detail

      • InternalScribeCodec

        public InternalScribeCodec()
    • Method Detail

      • messageSizeInBytes

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

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

        public static void writeLogRequest​(byte[] category,
                                           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