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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PREFIX

      public static final java.lang.String PREFIX
    • CONFIG_COMPRESSION_FILTER

      public static final java.lang.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 java.lang.String CONFIG_FLUSH_MAPFILE
      The name of the configuration determining whether to flush upon each incoming registry entry.
    • CONFIG_BUFFERSIZE

      public static final java.lang.String CONFIG_BUFFERSIZE
      The 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 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, java.lang.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