This operation is the central part of the daemon. It can manage many different {@link WatchOperation}s and exposes a web socket server to control and query the daemon. It furthermore offers a file-based control server to stop and reload the daemon.
When started via {@link #execute()}, the operation starts the following core components:
- The {@link WatchServer} starts a {@link WatchOperation} for every folder registered in the daemon.xml file. It can be reloaded via the syd reload command.
- The {@link WebServer} starts a websocket and allows clients (e.g. GUI, Web) to control the daemon (if authenticated). TODO [medium] This is not yet implemented!
- The {@link ControlServer} creates and watches the daemon control filewhich allows the syd shell/batch script to write reload/shutdown commands.
@author Vincent Wiencek
@author Philipp C. Heckel
@author Pim Otte