Class BinaryLogStreamHandler

java.lang.Object
kieker.monitoring.writer.filesystem.AbstractLogStreamHandler
kieker.monitoring.writer.filesystem.BinaryLogStreamHandler

public class BinaryLogStreamHandler
extends AbstractLogStreamHandler
Binary log stream handler.
Since:
1.14
  • Constructor Details

    • BinaryLogStreamHandler

      public BinaryLogStreamHandler​(java.lang.Boolean flushLogFile, java.lang.Integer bufferSize, java.nio.charset.Charset charset, ICompressionFilter compressionFilter, kieker.common.registry.writer.WriterRegistry writerRegistry)
      Create a binary log stream handler.
      Parameters:
      flushLogFile - flush log file
      bufferSize - buffer size
      charset - charset, presently not used in binary serialization
      compressionFilter - compression filter
      writerRegistry - writer registry.
  • Method Details

    • serialize

      public void serialize​(kieker.common.record.IMonitoringRecord record, int id) throws java.io.IOException
      Description copied from class: AbstractLogStreamHandler
      Serialize a record.
      Specified by:
      serialize in class AbstractLogStreamHandler
      Parameters:
      record - the record itself
      id - the type id from the string registry
      Throws:
      java.io.IOException - on io errors, e.g., write errors
    • close

      public void close() throws java.io.IOException
      Description copied from class: AbstractLogStreamHandler
      Close the log file.
      Overrides:
      close in class AbstractLogStreamHandler
      Throws:
      java.io.IOException - on io error