Search in sources :

Example 1 with ClassNameRegistry

use of kieker.analysisteetime.plugin.reader.filesystem.className.ClassNameRegistry in project iobserve-analysis by research-iobserve.

the class DatFileToRecordStage method execute.

@Override
protected void execute(final File textFile) {
    final ClassNameRegistry classNameRegistry = this.classNameRegistryRepository.get(textFile.getParentFile());
    try {
        final FileInputStream inputStream = new FileInputStream(textFile);
        if (inputStream != null) {
            this.processInputChannel(classNameRegistry, inputStream);
            inputStream.close();
        }
    } catch (final FileNotFoundException e) {
        this.logger.error("", e);
    } catch (final IOException e) {
        this.logger.error("", e);
    } catch (final MappingException e) {
        this.logger.error("", e);
    } catch (final MonitoringRecordException e) {
        this.logger.error("", e);
    } catch (final UnknownRecordTypeException e) {
        this.logger.error("", e);
    }
}
Also used : ClassNameRegistry(kieker.analysisteetime.plugin.reader.filesystem.className.ClassNameRegistry) UnknownRecordTypeException(kieker.common.exception.UnknownRecordTypeException) MonitoringRecordException(kieker.common.exception.MonitoringRecordException) FileNotFoundException(java.io.FileNotFoundException) IOException(java.io.IOException) FileInputStream(java.io.FileInputStream) MappingException(teetime.stage.util.MappingException)

Aggregations

FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 ClassNameRegistry (kieker.analysisteetime.plugin.reader.filesystem.className.ClassNameRegistry)1 MonitoringRecordException (kieker.common.exception.MonitoringRecordException)1 UnknownRecordTypeException (kieker.common.exception.UnknownRecordTypeException)1 MappingException (teetime.stage.util.MappingException)1