congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DirectoryScannerStage.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
kieker.analysisteetime.plugin.reader.filesystem.DirectoryScannerStage
constructor

Best Java code snippets using kieker.analysisteetime.plugin.reader.filesystem.DirectoryScannerStage.<init> (Showing top 3 results out of 315)

origin: kieker-monitoring/kieker

/**
 * Creates a composite stage to scan and read a set of Kieker log directories.
 *
 * @param configuration configuration for the enclosed filters
 */
public LogsReaderCompositeStage(final Configuration configuration) {
  final String[] directoryNames = configuration.getStringArrayProperty(LOG_DIRECTORIES, ":");
  final File[] directories = new File[directoryNames.length];
  int i = 0;
  for (final String name : directoryNames) {
    directories[i++] = new File(name);
  }
  this.directoryScannerStage = new DirectoryScannerStage(directories);
  this.directoryReaderStage = new DirectoryReaderStage(configuration);
  this.connectPorts(this.directoryScannerStage.getOutputPort(), this.directoryReaderStage.getInputPort());
}
origin: kieker-monitoring/kieker

/**
 * Check whether the scanner produces nothing and terminates.
 */
@Test
public void testEmptyArrayOfDirectories() {
  final DirectoryScannerStage producer = new DirectoryScannerStage(null);
  StageTester.test(producer).start();
  Assert.assertThat(producer.getOutputPort(), StageTester.producesNothing());
}
origin: kieker-monitoring/kieker

/**
 * Check whether the scanner produces a File handle for each directory. There should be three
 * directories. However, the sequence can vary depending on the operating system and file system
 * properties. therefore, we use our own matcher.
 */
@Test
public void testPopulatedArrayOfDirectories() {
  final DirectoryScannerStage producer = new DirectoryScannerStage(this.directories);
  StageTester.test(producer).start();
  Assert.assertThat(producer.getOutputPort(), new RandomContentMatcher(this.results));
}
kieker.analysisteetime.plugin.reader.filesystemDirectoryScannerStage<init>

Javadoc

Create a directory scanner.

Popular methods of DirectoryScannerStage

  • getOutputPort
  • isKiekerDirectory
  • scanDirectory
  • workCompleted

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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