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
- Author:
- Reiner Jung
-
Field Summary
Fields inherited from class kieker.monitoring.writer.filesystem.AbstractLogStreamHandler
charset, compressionFilter, extension, flushLogFile, numOfBytes, numOfEntries, outputChannel, serializedStream, serializer, writerRegistry -
Constructor Summary
Constructors Constructor Description BinaryLogStreamHandler(java.lang.Boolean flushLogFile, java.lang.Integer bufferSize, java.nio.charset.Charset charset, ICompressionFilter compressionFilter, WriterRegistry writerRegistry)Create a binary log stream handler. -
Method Summary
Modifier and Type Method Description voidclose()Close the log file.voidserialize(IMonitoringRecord record, int id)Serialize a record.Methods inherited from class kieker.monitoring.writer.filesystem.AbstractLogStreamHandler
getFileExtension, getNumOfBytes, getNumOfEntries, initialize
-
Constructor Details
-
BinaryLogStreamHandler
public BinaryLogStreamHandler(java.lang.Boolean flushLogFile, java.lang.Integer bufferSize, java.nio.charset.Charset charset, ICompressionFilter compressionFilter, WriterRegistry writerRegistry)Create a binary log stream handler.- Parameters:
flushLogFile- flush log filebufferSize- buffer sizecharset- charset, presently not used in binary serializationcompressionFilter- compression filterwriterRegistry- writer registry.
-
-
Method Details
-
serialize
Description copied from class:AbstractLogStreamHandlerSerialize a record.- Specified by:
serializein classAbstractLogStreamHandler- Parameters:
record- the record itselfid- 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.IOExceptionDescription copied from class:AbstractLogStreamHandlerClose the log file.- Overrides:
closein classAbstractLogStreamHandler- Throws:
java.io.IOException- on io error
-