Class TextMapFileHandler

java.lang.Object
kieker.monitoring.writer.filesystem.TextMapFileHandler
All Implemented Interfaces:
IMapFileHandler

public class TextMapFileHandler extends 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 Details

    • PREFIX

      public static final String PREFIX
    • CONFIG_COMPRESSION_FILTER

      public static final String CONFIG_COMPRESSION_FILTER
      The name of the configuration key to select a compression for the record log files.
    • CONFIG_FLUSH_MAPFILE

      public static final String CONFIG_FLUSH_MAPFILE
      The name of the configuration determining whether to flush upon each incoming registry entry.
    • CONFIG_BUFFERSIZE

      public static final String CONFIG_BUFFERSIZE
      The name of the configuration key determining the buffer size of the output file stream.
  • Constructor Details

    • TextMapFileHandler

      public TextMapFileHandler(Configuration configuration)
  • Method Details

    • create

      public void create(Path location, 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 interface IMapFileHandler
      Parameters:
      location - complete path for the map file including its name
      charset - 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 interface IMapFileHandler
    • add

      public void add(int id, String eventClassName)
      Description copied from interface: IMapFileHandler
      Add a key value pair to the file.
      Specified by:
      add in interface IMapFileHandler
      Parameters:
      id - class id
      eventClassName - name of the event class