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 void
close()
Close the log file.void
serialize(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:AbstractLogStreamHandler
Serialize a record.- Specified by:
serialize
in 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:AbstractLogStreamHandler
Close the log file.- Overrides:
close
in classAbstractLogStreamHandler
- Throws:
java.io.IOException
- on io error
-