Class TextMapFileHandler
java.lang.Object
kieker.monitoring.writer.filesystem.TextMapFileHandler
- All Implemented Interfaces:
IMapFileHandler
public class TextMapFileHandler extends java.lang.Object implements IMapFileHandler
Handler for the map file used in Kieker. Note: This version does not support
compression for the map file right now.
- Since:
- 1.14
- Author:
- Reiner Jung
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_BUFFERSIZEThe name of the configuration key determining the buffer size of the output file stream.static java.lang.StringCONFIG_COMPRESSION_FILTERThe name of the configuration key to select a compression for the record log files.static java.lang.StringCONFIG_FLUSH_MAPFILEThe name of the configuration determining whether to flush upon each incoming registry entry.static java.lang.StringPREFIX -
Constructor Summary
Constructors Constructor Description TextMapFileHandler(Configuration configuration) -
Method Summary
Modifier and Type Method Description voidadd(int id, java.lang.String eventClassName)Add a key value pair to the file.voidclose()Close the mapping file.voidcreate(java.nio.file.Path location, java.nio.charset.Charset charset)Create a map file with the given name and location adhering to the given charset.
-
Field Details
-
PREFIX
public static final java.lang.String PREFIX -
CONFIG_COMPRESSION_FILTER
public static final java.lang.String CONFIG_COMPRESSION_FILTERThe name of the configuration key to select a compression for the record log files. -
CONFIG_FLUSH_MAPFILE
public static final java.lang.String CONFIG_FLUSH_MAPFILEThe name of the configuration determining whether to flush upon each incoming registry entry. -
CONFIG_BUFFERSIZE
public static final java.lang.String CONFIG_BUFFERSIZEThe name of the configuration key determining the buffer size of the output file stream.
-
-
Constructor Details
-
Method Details
-
create
public void create(java.nio.file.Path location, java.nio.charset.Charset charset)Description copied from interface:IMapFileHandlerCreate a map file with the given name and location adhering to the given charset.- Specified by:
createin interfaceIMapFileHandler- Parameters:
location- complete path for the map file including its namecharset- character set to be used for the file
-
close
public void close()Description copied from interface:IMapFileHandlerClose the mapping file.- Specified by:
closein interfaceIMapFileHandler
-
add
public void add(int id, java.lang.String eventClassName)Description copied from interface:IMapFileHandlerAdd a key value pair to the file.- Specified by:
addin interfaceIMapFileHandler- Parameters:
id- class ideventClassName- name of the event class
-