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.String
CONFIG_BUFFERSIZE
The name of the configuration key determining the buffer size of the output file stream.static java.lang.String
CONFIG_COMPRESSION_FILTER
The name of the configuration key to select a compression for the record log files.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
PREFIX
-
Constructor Summary
Constructors Constructor Description TextMapFileHandler(Configuration configuration)
-
Method Summary
Modifier and Type Method Description void
add(int id, java.lang.String eventClassName)
Add a key value pair to the file.void
close()
Close the mapping file.void
create(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:IMapFileHandler
Create a map file with the given name and location adhering to the given charset.- Specified by:
create
in 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:IMapFileHandler
Close the mapping file.- Specified by:
close
in interfaceIMapFileHandler
-
add
public void add(int id, java.lang.String eventClassName)Description copied from interface:IMapFileHandler
Add a key value pair to the file.- Specified by:
add
in interfaceIMapFileHandler
- Parameters:
id
- class ideventClassName
- name of the event class
-