Class FileWriter

java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.filesystem.FileWriter
All Implemented Interfaces:
IRegistryListener<String>

public class FileWriter extends AbstractMonitoringWriter implements IRegistryListener<String>
Generic file writer which can be used to write any type of serialization. Presently, two serialization methods exist.
Since:
1.14
Author:
Reiner Jung
  • Field Details

    • PREFIX

      public static final String PREFIX
    • CONFIG_PATH

      public static final String CONFIG_PATH
      The name of the configuration for the custom storage path if the writer is advised not to store in the temporary directory.
    • CONFIG_CHARSET_NAME

      public static final String CONFIG_CHARSET_NAME
      The name of the configuration for the charset name used to store strings (e.g. "UTF-8").
    • CONFIG_MAXENTRIESINFILE

      public static final String CONFIG_MAXENTRIESINFILE
      The name of the configuration determining the maximal number of entries in a file.
    • CONFIG_MAXLOGSIZE

      public static final String CONFIG_MAXLOGSIZE
      The name of the configuration determining the maximal size of the files in MiB.
    • CONFIG_MAXLOGFILES

      public static final String CONFIG_MAXLOGFILES
      The name of the configuration determining the maximal number of log files.
    • CONFIG_MAP_FILE_HANDLER

      public static final String CONFIG_MAP_FILE_HANDLER
      The name of the configuration to switch for the map file handler; default TextMapFileHandler.
    • CONFIG_LOG_POOL_FILE_HANDLER

      public static final String CONFIG_LOG_POOL_FILE_HANDLER
      The name of the configuration to define the handler of the file pool.
    • CONFIG_LOG_STREAM_HANDLER

      public static final String CONFIG_LOG_STREAM_HANDLER
      The name of the configuration to define the handler of the log stream.
    • CONFIG_FLUSH

      public static final String CONFIG_FLUSH
      The name of the configuration key determining to always flush the output file stream after writing each record.
    • 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_BUFFERSIZE

      public static final String CONFIG_BUFFERSIZE
      The name of the configuration key for the buffer size.
  • Constructor Details

    • FileWriter

      public FileWriter(Configuration configuration) throws IOException
      Create a generic file writer.
      Parameters:
      configuration - Kieker configuration object.
      Throws:
      IOException
  • Method Details