public class BinaryFileWriter extends AbstractMonitoringWriter implements IRegistryListener<java.lang.String>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_BUFFERSIZE
The name of the configuration key determining the buffer size of the output file stream
|
static java.lang.String |
CONFIG_CHARSET_NAME
The name of the configuration key for the charset name of the mapping file
|
static java.lang.String |
CONFIG_FLUSH
The name of the configuration key determining to always flush the output file stream after writing each record
|
static java.lang.String |
CONFIG_FLUSH_MAPFILE
The name of the configuration determining whether to flush upon each incoming registry entry.
|
static java.lang.String |
CONFIG_MAXENTRIESINFILE
The name of the configuration determining the maximal number of entries in a file.
|
static java.lang.String |
CONFIG_MAXLOGFILES
The name of the configuration determining the maximal number of log files.
|
static java.lang.String |
CONFIG_MAXLOGSIZE
The name of the configuration determining the maximal size of the files in MiB.
|
static java.lang.String |
CONFIG_PATH
The name of the configuration for the custom storage path if the writer is advised not to store in the temporary directory.
|
static java.lang.String |
CONFIG_SHOULD_COMPRESS
The name of the configuration key determining to enable/disable compression of the record log files
|
static java.lang.String |
PREFIX |
configuration
Constructor and Description |
---|
BinaryFileWriter(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
java.io.FilenameFilter |
getFileNameFilter() |
java.nio.file.Path |
getLogFolder() |
void |
onNewRegistryEntry(java.lang.String recordClassName,
int id)
This event is fired after a new registry entry was registered.
|
void |
onStarting()
This event fires when Kieker has been initialized and is ready to monitor.
|
void |
onTerminating()
This event fires when Kieker has been notified to terminate.
|
java.lang.String |
toString()
Returns a textual representation of the writer's configuration.
|
void |
writeMonitoringRecord(IMonitoringRecord monitoringRecord)
This event fires when Kieker has received a new record.
|
public static final java.lang.String PREFIX
public static final java.lang.String CONFIG_PATH
public static final java.lang.String CONFIG_MAXENTRIESINFILE
public static final java.lang.String CONFIG_MAXLOGSIZE
public static final java.lang.String CONFIG_MAXLOGFILES
public static final java.lang.String CONFIG_CHARSET_NAME
public static final java.lang.String CONFIG_SHOULD_COMPRESS
public static final java.lang.String CONFIG_BUFFERSIZE
public static final java.lang.String CONFIG_FLUSH
public static final java.lang.String CONFIG_FLUSH_MAPFILE
public BinaryFileWriter(Configuration configuration)
public void onStarting()
AbstractMonitoringWriter
MonitoringWriterThread
just before reading the writer queue.onStarting
in class AbstractMonitoringWriter
public void writeMonitoringRecord(IMonitoringRecord monitoringRecord)
AbstractMonitoringWriter
writeMonitoringRecord
in class AbstractMonitoringWriter
public void onNewRegistryEntry(java.lang.String recordClassName, int id)
IRegistryListener
onNewRegistryEntry
in interface IRegistryListener<java.lang.String>
public void onTerminating()
AbstractMonitoringWriter
MonitoringWriterThread
just after finishing the writer queue.onTerminating
in class AbstractMonitoringWriter
public java.nio.file.Path getLogFolder()
public java.io.FilenameFilter getFileNameFilter()
public java.lang.String toString()
AbstractMonitoringWriter
toString
in class AbstractMonitoringWriter
Copyright 2017 Kieker Project, http://kieker-monitoring.net