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
-
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.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
-
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 classteetime.framework.AbstractConsumerStage<java.nio.file.Path>
- Throws:
java.lang.Exception
-