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, initializepublic 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
AbstractLogStreamHandlerserialize in class AbstractLogStreamHandlerrecord - 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
AbstractLogStreamHandlerclose in class AbstractLogStreamHandlerjava.io.IOException - on io errorCopyright 2020 Kieker Project, http://kieker-monitoring.net