public class BinaryLogStreamHandler extends AbstractLogStreamHandler
charset, compressionFilter, extension, flushLogFile, numOfBytes, numOfEntries, outputChannel, serializedStream, serializer, writerRegistry
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the log file.
|
void |
serialize(IMonitoringRecord record,
int id)
Serialize a record.
|
getFileExtension, getNumOfBytes, getNumOfEntries, initialize
public BinaryLogStreamHandler(java.lang.Boolean flushLogFile, java.lang.Integer bufferSize, java.nio.charset.Charset charset, ICompressionFilter compressionFilter, WriterRegistry writerRegistry)
flushLogFile
- flush log filebufferSize
- buffer sizecharset
- charset, presently not used in binary serializationcompressionFilter
- compression filterwriterRegistry
- writer registry.public void serialize(IMonitoringRecord record, int id) throws java.io.IOException
AbstractLogStreamHandler
serialize
in class AbstractLogStreamHandler
record
- the record itselfid
- the type id from the string registryjava.io.IOException
- on io errors, e.g., write errorspublic void close() throws java.io.IOException
AbstractLogStreamHandler
close
in class AbstractLogStreamHandler
java.io.IOException
- on io errorCopyright 2020 Kieker Project, http://kieker-monitoring.net