Class DirectoryScannerStage

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<E,​E>
teetime.stage.basic.AbstractFilter<java.nio.file.Path>
kieker.analysis.generic.source.file.DirectoryScannerStage
All Implemented Interfaces:
teetime.stage.basic.ITransformation<java.nio.file.Path,​java.nio.file.Path>

public class DirectoryScannerStage
extends teetime.stage.basic.AbstractFilter<java.nio.file.Path>
Scan a directory for contained files.
Since:
1.3.0
Author:
Reiner Jung
  • Field Summary

    Fields inherited from class teetime.stage.basic.AbstractTransformation

    outputPort

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    DirectoryScannerStage​(boolean recursive, java.util.function.Predicate<java.nio.file.Path> directoryFilter, java.util.function.Predicate<java.nio.file.Path> fileFilter)  
  • Method Summary

    Modifier and Type Method Description
    protected void execute​(java.nio.file.Path directory)  

    Methods inherited from class teetime.stage.basic.AbstractTransformation

    getOutputPort

    Methods inherited from class teetime.framework.AbstractConsumerStage

    createInputPort, execute, getInputPort

    Methods inherited from class teetime.framework.AbstractStage

    abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface teetime.stage.basic.ITransformation

    getInputPort
  • Constructor Details

    • DirectoryScannerStage

      public DirectoryScannerStage​(boolean recursive, java.util.function.Predicate<java.nio.file.Path> directoryFilter, java.util.function.Predicate<java.nio.file.Path> fileFilter)
  • Method Details

    • execute

      protected void execute​(java.nio.file.Path directory) throws java.lang.Exception
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<java.nio.file.Path>
      Throws:
      java.lang.Exception