Kieker 1.12

kieker.monitoring.writer.filesystem.map
Class MappingFileWriter

java.lang.Object
  extended by kieker.monitoring.writer.filesystem.map.MappingFileWriter

public final class MappingFileWriter
extends java.lang.Object

This writer is a helper class to handle the mapping files for Kieker's records, containing the mapping between short IDs and actual record classes. It provides the possibility to create these mapping files and to write the mappings into them.

Since:
1.7
Author:
Andre van Hoorn, Jan Waller

Constructor Summary
MappingFileWriter(java.lang.String path)
          Creates a new instance of this class using the given parameters.
 
Method Summary
 void write(RegistryRecord hashRecord)
          Writes the given mapping into the mapping file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingFileWriter

public MappingFileWriter(java.lang.String path)
                  throws java.io.IOException
Creates a new instance of this class using the given parameters.

Parameters:
path - The path containing the record files. The writer will put the mapping file into this directory.
Throws:
java.io.IOException - If the mapping file has already been created.
Method Detail

write

public final void write(RegistryRecord hashRecord)
                 throws java.io.IOException
Writes the given mapping into the mapping file.

Parameters:
hashRecord - The mapping between the ID and the actual object.
Throws:
java.io.IOException - If something went wrong during the writing.

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net