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 aWatchOperation
in 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 boolean
hasStopped()
boolean
isSyncRunning()
void
onRequestReceived(FolderRequest folderRequest)
void
start()
void
stop()
-
-
-
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)
-
-