public class TextMapFileHandler extends java.lang.Object implements IMapFileHandler
| 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_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 and Description |
|---|
TextMapFileHandler(Configuration configuration) |
| Modifier and Type | Method and 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.
|
public static final java.lang.String PREFIX
public static final java.lang.String CONFIG_COMPRESSION_FILTER
public static final java.lang.String CONFIG_FLUSH_MAPFILE
public static final java.lang.String CONFIG_BUFFERSIZE
public TextMapFileHandler(Configuration configuration)
public void create(java.nio.file.Path location,
java.nio.charset.Charset charset)
IMapFileHandlercreate in interface IMapFileHandlerlocation - complete path for the map file including its namecharset - character set to be used for the filepublic void close()
IMapFileHandlerclose in interface IMapFileHandlerpublic void add(int id,
java.lang.String eventClassName)
IMapFileHandleradd in interface IMapFileHandlerid - class ideventClassName - name of the event classCopyright 2020 Kieker Project, http://kieker-monitoring.net