Tabnine Logo
kieker.analysis.plugin.reader.filesystem
Code IndexAdd Tabnine to your IDE (free)

How to use kieker.analysis.plugin.reader.filesystem

Best Java code snippets using kieker.analysis.plugin.reader.filesystem (Showing top 20 results out of 315)

origin: kieker-monitoring/kieker

  @Override
  public void newEndOfFileRecord() {
    this.newMonitoringRecord(EOF);
  }
}
origin: net.kieker-monitoring/kieker

  @Override
  public void newEndOfFileRecord() {
    this.newMonitoringRecord(EOF);
  }
}
origin: net.kieker-monitoring/kieker

  @Override
  public void newEndOfFileRecord() {
    this.newMonitoringRecord(EOF);
  }
}
origin: kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
protected AbstractReaderPlugin createReader(final IAnalysisController analysisInstance) {
  final Configuration configuration = new Configuration();
  configuration.setProperty(FSReader.CONFIG_PROPERTY_NAME_INPUTDIRS, Configuration.toProperty(this.inputDirs));
  configuration.setProperty(FSReader.CONFIG_PROPERTY_NAME_IGNORE_UNKNOWN_RECORD_TYPES, Boolean.toString(true));
  return new FSReader(configuration, analysisInstance);
}
origin: kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public void terminate(final boolean error) {
  this.logger.info("Shutting down reader.");
  for (final AbstractLogReaderThread readerThread : this.readerThreads) {
    readerThread.terminate();
  }
}
origin: kieker-monitoring/kieker

/**
 * Creates a new instance of this class.
 *
 * @param inputDir
 *            The File object for the input directory.
 * @param recordReceiver
 *            The receiver handling the records.
 * @param ignoreUnknownRecordTypes
 *            select only records of this type; null selects all
 */
public FSDirectoryReader(final File inputDir, final IMonitoringRecordReceiver recordReceiver,
    final boolean ignoreUnknownRecordTypes) {
  if ((inputDir == null) || !inputDir.isDirectory()) {
    throw new IllegalArgumentException("Invalid or empty inputDir");
  }
  this.inputDir = inputDir;
  this.recordReceiver = recordReceiver;
  this.ignoreUnknownRecordTypes = ignoreUnknownRecordTypes;
  this.textFileStreamProcessor = new TextFileStreamProcessor(ignoreUnknownRecordTypes, this.stringRegistry, recordReceiver);
  this.binaryFileStreamProcessor = new BinaryFileStreamProcessor(this.stringRegistry, recordReceiver);
}
origin: net.kieker-monitoring/kieker

  public void terminate() {
    this.shouldTerminate = true;
    this.interrupt();
  }
}
origin: kieker-monitoring/kieker

/**
 * Reads the records contained in the given normal file and passes them to the registered {@link #recordReceiver}.
 *
 * @param inputFile
 *            The input file which should be processed.
 */
private final void processNormalInputFile(final File inputFile) {
  try {
    this.textFileStreamProcessor.processInputChannel(new FileInputStream(inputFile));
    this.terminated = true;
  } catch (final Exception ex) { // NOCS NOPMD (gonna catch them all)
    LOGGER.error("Error reading {}", inputFile, ex);
  }
}
origin: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
protected AbstractReaderPlugin createReader(final IAnalysisController analysisInstance) {
  final Configuration configuration = new Configuration();
  configuration.setProperty(FSReader.CONFIG_PROPERTY_NAME_INPUTDIRS, Configuration.toProperty(this.inputDirs));
  configuration.setProperty(FSReader.CONFIG_PROPERTY_NAME_IGNORE_UNKNOWN_RECORD_TYPES, Boolean.toString(true));
  return new FSReader(configuration, analysisInstance);
}
origin: kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public void terminate(final boolean error) {
  this.logger.info("Shutting down reader.");
  for (final AbstractLogReaderThread readerThread : this.readerThreads) {
    readerThread.terminate();
  }
}
origin: kieker-monitoring/kieker

/**
 * Creates a new instance of this class.
 *
 * @param inputDir
 *            The File object for the input directory.
 * @param recordReceiver
 *            The receiver handling the records.
 * @param ignoreUnknownRecordTypes
 *            select only records of this type; null selects all
 */
public FSDirectoryReader(final File inputDir, final IMonitoringRecordReceiver recordReceiver,
    final boolean ignoreUnknownRecordTypes) {
  if ((inputDir == null) || !inputDir.isDirectory()) {
    throw new IllegalArgumentException("Invalid or empty inputDir");
  }
  this.inputDir = inputDir;
  this.recordReceiver = recordReceiver;
  this.ignoreUnknownRecordTypes = ignoreUnknownRecordTypes;
  this.textFileStreamProcessor = new TextFileStreamProcessor(ignoreUnknownRecordTypes, this.stringRegistry, recordReceiver);
  this.binaryFileStreamProcessor = new BinaryFileStreamProcessor(this.stringRegistry, recordReceiver);
}
origin: net.kieker-monitoring/kieker

  @Override
  public void newEndOfFileRecord() {
    this.newMonitoringRecord(EOF);
  }
}
origin: kieker-monitoring/kieker

  @Override
  public void newEndOfFileRecord() {
    this.newMonitoringRecord(EOF);
  }
}
origin: kieker-monitoring/kieker

  @Override
  public void newEndOfFileRecord() {
    this.newMonitoringRecord(EOF);
  }
}
origin: kieker-monitoring/kieker

  public void terminate() {
    this.shouldTerminate = true;
    this.interrupt();
  }
}
origin: kieker-monitoring/kieker

/**
 * Reads the records contained in the given normal file and passes them to the registered {@link #recordReceiver}.
 *
 * @param inputFile
 *            The input file which should be processed.
 */
private final void processNormalInputFile(final File inputFile) {
  try {
    this.textFileStreamProcessor.processInputChannel(new FileInputStream(inputFile));
    this.terminated = true;
  } catch (final Exception ex) { // NOCS NOPMD (gonna catch them all)
    LOGGER.error("Error reading {}", inputFile, ex);
  }
}
origin: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public void terminate(final boolean error) {
  this.log.info("Shutting down reader.");
  for (final AbstractLogReaderThread readerThread : this.readerThreads) {
    readerThread.terminate();
  }
}
origin: kieker-monitoring/kieker

/**
 * Creates a new instance of this class.
 *
 * @param zipFile
 *            The File object for the zip file.
 * @param recordReceiver
 *            The receiver handling the records.
 * @param ignoreUnknownRecordTypes
 *            select only records of this type; null selects all
 */
public FSZipReader(final File zipFile, final IMonitoringRecordReceiver recordReceiver, final boolean ignoreUnknownRecordTypes) {
  if ((zipFile == null) || !zipFile.isFile() || !zipFile.getName().endsWith(FSUtil.ZIP_FILE_EXTENSION)) {
    throw new IllegalArgumentException("Invalid zip file");
  }
  this.zipFile = zipFile;
  this.recordReceiver = recordReceiver;
  this.ignoreUnknownRecordTypes = ignoreUnknownRecordTypes;
  this.binaryFileStreamProcessor = new BinaryFileStreamProcessor(this.stringRegistry, recordReceiver);
  this.textFileStreamProcessor = new TextFileStreamProcessor(ignoreUnknownRecordTypes, this.stringRegistry, recordReceiver);
}
origin: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public void terminate(final boolean error) {
  this.log.info("Shutting down reader.");
  for (final AbstractLogReaderThread readerThread : this.readerThreads) {
    readerThread.terminate();
  }
}
origin: kieker-monitoring/kieker

/**
 * Creates a new instance of this class.
 *
 * @param zipFile
 *            The File object for the zip file.
 * @param recordReceiver
 *            The receiver handling the records.
 * @param ignoreUnknownRecordTypes
 *            select only records of this type; null selects all
 */
public FSZipReader(final File zipFile, final IMonitoringRecordReceiver recordReceiver, final boolean ignoreUnknownRecordTypes) {
  if ((zipFile == null) || !zipFile.isFile() || !zipFile.getName().endsWith(FSUtil.ZIP_FILE_EXTENSION)) {
    throw new IllegalArgumentException("Invalid zip file");
  }
  this.zipFile = zipFile;
  this.recordReceiver = recordReceiver;
  this.ignoreUnknownRecordTypes = ignoreUnknownRecordTypes;
  this.binaryFileStreamProcessor = new BinaryFileStreamProcessor(this.stringRegistry, recordReceiver);
  this.textFileStreamProcessor = new TextFileStreamProcessor(ignoreUnknownRecordTypes, this.stringRegistry, recordReceiver);
}
kieker.analysis.plugin.reader.filesystem

Most used classes

  • FSReader
    Filesystem reader which reads from multiple directories simultaneously ordered by the logging timest
  • AsciiLogReader
    Filesystem reader which reads from multiple directories simultaneously ordered by the logging timest
  • AbstractLogReaderThread
  • AsciiLogReaderThread
    Reads the contents of a single file system log directory and passes the records to the registered re
  • BinaryLogReader
    Filesystem reader which reads from multiple directories simultaneously ordered by the logging timest
  • FSDirectoryReader,
  • FSZipReader,
  • BinaryFileStreamProcessor,
  • TextFileStreamProcessor
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now