Package org.syncany.operations.daemon
Class WatchRunner
- java.lang.Object
-
- org.syncany.operations.daemon.WatchRunner
-
public class WatchRunner extends java.lang.Object
The watch operation thread runs aWatchOperationin a thread. The underlying thred can be started using thestart()method, and stopped gracefully usingstop().
-
-
Constructor Summary
Constructors Constructor Description WatchRunner(Config config, WatchOperationOptions watchOperationOptions, PortTO portTO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasStopped()booleanisSyncRunning()voidonRequestReceived(FolderRequest folderRequest)voidstart()voidstop()
-
-
-
Constructor Detail
-
WatchRunner
public WatchRunner(Config config, WatchOperationOptions watchOperationOptions, PortTO portTO) throws ConfigException
- Throws:
ConfigException
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
hasStopped
public boolean hasStopped()
-
isSyncRunning
public boolean isSyncRunning()
-
onRequestReceived
public void onRequestReceived(FolderRequest folderRequest)
-
-