Package com.nt.udc.util
Class DirectoryWatcherService
java.lang.Object
com.nt.udc.util.DirectoryWatcherService
- All Implemented Interfaces:
Runnable
This class watches over an output directory for any output file create
event for an end node which is part of test node chain.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryWatcherService
(Path dir, String nodeId, String testId, List<String> completedFileSubstrsList, DirectoryKeyPropertiesParser.SubstringType completedFileSubstrsType, TNCCallbackHandler callbackHandler, Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method shuts down WatchService thread.void
run()
void
This method shuts down ScheduledExecutorService thread.
-
Constructor Details
-
DirectoryWatcherService
public DirectoryWatcherService(Path dir, String nodeId, String testId, List<String> completedFileSubstrsList, DirectoryKeyPropertiesParser.SubstringType completedFileSubstrsType, TNCCallbackHandler callbackHandler, Logger logger) throws IOException - Throws:
IOException
-
-
Method Details